From 5ecbaedce0fc4f5cff702aa7e8dc6b02ebf6ec38 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Mon, 17 Jun 2024 00:15:29 -0500 Subject: [PATCH] texture cache base --- Source/Core/VideoCommon/TextureCacheBase.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 568d5ed3f4..7233cb38aa 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -2763,8 +2763,11 @@ TextureCacheBase::InvalidateTexture(TexAddrCache::iterator iter, bool discard_pe auto& mod_manager = system.GetGraphicsModManager(); if (entry->is_efb_copy) { - mod_manager.GetBackend().OnTextureUnload(GraphicsModSystem::TextureType::EFB, - entry->texture_info_name); + if (entry->pending_efb_copy && discard_pending_efb_copy) + { + mod_manager.GetBackend().OnTextureUnload(GraphicsModSystem::TextureType::EFB, + entry->texture_info_name); + } } else if (entry->is_xfb_copy) {