GS: improve haunting ground hw tc hack.

when clearing the render target, also discard all the dirty
rectangles previously marked, to avoid spurious uploads
later.
This commit is contained in:
iMineLink
2022-08-19 10:55:27 +01:00
committed by refractionpcsx2
parent f73d7b4cb9
commit 202fb5fef3
+1
View File
@@ -779,6 +779,7 @@ void GSTextureCache::InvalidateVideoMem(const GSOffset& off, const GSVector4i& r
t->m_texture ? t->m_texture->GetID() : 0,
t->m_TEX0.TBP0);
g_gs_device->ClearRenderTarget(t->m_texture, 0);
t->m_dirty.clear();
}
}
}