Merge pull request #16000 from unknownbrackets/gedebugger

Cleanup some crashes in GE debugger or with large textures
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2022-09-11 19:41:11 +02:00
commit 75efcd9dfd
6 files changed
+23 -10

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;