Skip to content

Commit

Permalink
GS/HW: Fix incorrect alpha valid check in LookupTarget()
Browse files Browse the repository at this point in the history
Regression from #10254.
  • Loading branch information
stenzek authored Nov 10, 2023
1 parent 68f7df6 commit 09d15c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/GS/Renderers/HW/GSTextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@ GSTextureCache::Target* GSTextureCache::LookupTarget(GIFRegTEX0 TEX0, const GSVe
dst_match = t;
break;
}
else if (t->m_age == 1 && (preserve_rgb || (preserve_alpha && (dst_match->m_valid_alpha_low || dst_match->m_valid_alpha_high))))
else if (t->m_age == 1 && (preserve_rgb || (preserve_alpha && (t->m_valid_alpha_low || t->m_valid_alpha_high))))
{
dst_match = t;
}
Expand Down

0 comments on commit 09d15c4

Please sign in to comment.