mirror of https://github.com/PCSX2/pcsx2.git
GS/HW: Fix target memory usage underflowing
This commit is contained in:
parent
812f32efdd
commit
543f09999f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue