From 202fb5fef3823f5daa015b2cf6134408285e414d Mon Sep 17 00:00:00 2001 From: iMineLink Date: Thu, 18 Aug 2022 14:45:47 +0200 Subject: [PATCH] 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. --- pcsx2/GS/Renderers/HW/GSTextureCache.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp index 886e5f462f..a22ace695c 100644 --- a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp +++ b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp @@ -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(); } } }