From d0233a3486fb38271755435eb9e159013b43e09e Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Sun, 3 Mar 2024 18:02:03 +0000 Subject: [PATCH] GS/HW: Decorrect targets for readbacks --- pcsx2/GS/Renderers/HW/GSTextureCache.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp index 5a2d22273095d9..9ad5ec3c84ba05 100644 --- a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp +++ b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp @@ -1327,6 +1327,8 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const bool is_color, const // The hack can fix glitches in some games. if (!t->m_drawn_since_read.rempty()) { + t->RTADecorrect(t); + Read(t, t->m_drawn_since_read); t->m_drawn_since_read = GSVector4i::zero(); @@ -3520,6 +3522,8 @@ void GSTextureCache::InvalidateLocalMem(const GSOffset& off, const GSVector4i& r if (exact_bp && !dirty_rect.rintersect(targetr).rempty()) t->Update(); + t->RTADecorrect(t); + Read(t, targetr); // Try to cut down how much we read next, if we can.