From 76014b7cb913910407455cd667c550d959c459b0 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Sat, 22 Apr 2023 17:58:27 +0100 Subject: [PATCH] GS-TC: Use the expected rect to expand the target when Tex is RT. --- pcsx2/GS/Renderers/HW/GSTextureCache.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp index f3c81fc084..2875731c60 100644 --- a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp +++ b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp @@ -856,8 +856,7 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con // If the source is reading the rt, make sure it's big enough. if (t && GSUtil::HasCompatibleBits(psm, t->m_TEX0.PSM)) { - GSVector4i dirty_rect = t->m_dirty.GetTotalRect(t->m_TEX0, GSVector2i(new_rect.z, new_rect.w)); - const GSVector2i size_delta = { (dirty_rect.z - t->m_valid.z), (dirty_rect.w - t->m_valid.w) }; + const GSVector2i size_delta = { (new_rect.z - t->m_valid.z), (new_rect.w - t->m_valid.w) }; if (size_delta.x > 0 || size_delta.y > 0) { RGBAMask rgba;