Skip to content

Commit

Permalink
GS/HW: Decorrect targets for readbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Mar 12, 2024
1 parent b77947c commit d0233a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pcsx2/GS/Renderers/HW/GSTextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit d0233a3

Please sign in to comment.