GS/HW: Fix target memory usage underflowing

This commit is contained in:
Stenzek 2023-07-29 23:04:39 +10:00 committed by Connor McLaughlin
parent 812f32efdd
commit 543f09999f
1 changed files with 2 additions and 0 deletions

View File

@ -1913,6 +1913,8 @@ bool GSTextureCache::CopyRGBFromDepthToColor(Target* dst, Target* depth_src)
new_size != dst->m_unscaled_size || new_size != depth_src->m_unscaled_size);
if (!tex)
return false;
m_target_memory_usage = (m_target_memory_usage - dst->m_texture->GetMemUsage()) + tex->GetMemUsage();
}
// Remove any dirty rectangles contained by this update, we don't want to pull from local memory.