From c1bc1af302ca691553b0c82daca4a06b7461a29e Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 22 Feb 2023 23:14:24 +1000 Subject: [PATCH] GS/HW: Don't mess with the buffer width of the target on invalidate --- pcsx2/GS/Renderers/HW/GSTextureCache.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp index 9a09bde09b..0c14c82b9a 100644 --- a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp +++ b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp @@ -1345,8 +1345,6 @@ void GSTextureCache::InvalidateVideoMem(const GSOffset& off, const GSVector4i& r GL_CACHE("TC: Dirty After Target(%s) %d (0x%x)", to_string(type), t->m_texture ? t->m_texture->GetID() : 0, t->m_TEX0.TBP0); - // TODO: do not add this rect above too - t->m_TEX0.TBW = bw; if (eewrite) t->m_age = 0; @@ -1382,8 +1380,6 @@ void GSTextureCache::InvalidateVideoMem(const GSOffset& off, const GSVector4i& r if (eewrite) t->m_age = 0; - t->m_TEX0.TBW = bw; - const GSVector4i dirty_r = GSVector4i(r.left, r.top + y, r.right, r.bottom + y); AddDirtyRectTarget(t, dirty_r, psm, bw); continue;