Vulkan: Avoid crash if large texture attempted.

Doesn't do the clamp/wrap thing, but at least this won't crash.
This commit is contained in:
Unknown W. Brackets committed 2022-09-10 20:14:37 -07:00
1 parent 100cbec620
commit 6c6d817ce7
2 files changed
+5 -2

No files matched your search

+1 -2
View File
@@ -389,13 +389,12 @@ void TextureCacheVulkan::UpdateCurrentClut(GEPaletteFormat clutFormat, u32 clutB
}
void TextureCacheVulkan::BindTexture(TexCacheEntry *entry) {
if (!entry) {
if (!entry || !entry->vkTex) {
imageView_ = VK_NULL_HANDLE;
curSampler_ = VK_NULL_HANDLE;
return;
}
_dbg_assert_(entry->vkTex);
entry->vkTex->Touch();
int maxLevel = (entry->status & TexCacheEntry::STATUS_NO_MIPS) ? 0 : entry->maxLevel;