GS/HW: Decorrect targets for readbacks.

This commit is contained in:
refractionpcsx2 2024-03-03 18:02:03 +00:00 committed by lightningterror
parent bfef8397d6
commit 4d2b2e5803
1 changed files with 4 additions and 0 deletions

View File

@ -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.