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-18 14:45:47 +02:00 committed by refractionpcsx2
parent f73d7b4cb9
commit 202fb5fef3
1 changed files with 1 additions and 0 deletions

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_texture ? t->m_texture->GetID() : 0,
t->m_TEX0.TBP0); t->m_TEX0.TBP0);
g_gs_device->ClearRenderTarget(t->m_texture, 0); g_gs_device->ClearRenderTarget(t->m_texture, 0);
t->m_dirty.clear();
} }
} }
} }