From 76e8bfe42fc02d731b3a037b7e8976a2afd91cd2 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Sun, 19 Mar 2023 14:43:11 +0000 Subject: [PATCH] GS-TC: Make sure drawn/target coords match for adjusting drawn rect --- pcsx2/GS/Renderers/HW/GSTextureCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp index 5d1150ef54..d7255ad861 100644 --- a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp +++ b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp @@ -2418,7 +2418,7 @@ void GSTextureCache::InvalidateLocalMem(const GSOffset& off, const GSVector4i& r { t->m_drawn_since_read = GSVector4i::zero(); } - else if (targetr.width() == t->m_drawn_since_read.width() + else if (targetr.xzxz().eq(t->m_drawn_since_read.xzxz()) && targetr.w >= t->m_drawn_since_read.y) { if (targetr.y <= t->m_drawn_since_read.y) @@ -2426,7 +2426,7 @@ void GSTextureCache::InvalidateLocalMem(const GSOffset& off, const GSVector4i& r else if (targetr.w >= t->m_drawn_since_read.w) t->m_drawn_since_read.w = targetr.y; } - else if (targetr.height() == t->m_drawn_since_read.height() + else if (targetr.ywyw().eq(t->m_drawn_since_read.ywyw()) && targetr.z >= t->m_drawn_since_read.x) { if (targetr.x <= t->m_drawn_since_read.x)