texture cache base

This commit is contained in:
iwubcode 2024-06-17 00:15:29 -05:00
commit 5ecbaedce0

View file

@ -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)
{