GS/HW: Fix some small errors updating depth in RT targets

This commit is contained in:
refractionpcsx2 2024-04-16 10:07:01 +01:00
parent 0b5a3fa6af
commit 2a2dad9280
1 changed files with 1 additions and 3 deletions

View File

@ -1359,7 +1359,7 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const bool is_color, const
}
else
{
if ((psm == PSMT4 || psm == PSMT8) && t->m_was_dst_matched && !t->m_valid_rgb)
if (req_color && t->m_was_dst_matched && !t->m_valid_rgb)
{
GL_CACHE("TC: Attempt to repopulate RGB for target [%x] on source lookup", t->m_TEX0.TBP0);
@ -2009,8 +2009,6 @@ GSTextureCache::Target* GSTextureCache::LookupTarget(GIFRegTEX0 TEX0, const GSVe
dst->m_TEX0.TBW = dst_match->m_TEX0.TBW;
dst->UpdateValidity(dst->m_valid);
dst->m_rt_alpha_scale = false;
if (!CopyRGBFromDepthToColor(dst, dst_match))
{
// Needed new texture and memory allocation failed.