mirror of https://github.com/PCSX2/pcsx2.git
GS/HW: Fix some small errors updating depth in RT targets
This commit is contained in:
parent
0b5a3fa6af
commit
2a2dad9280
|
@ -1359,7 +1359,7 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const bool is_color, const
|
||||||
}
|
}
|
||||||
else
|
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);
|
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->m_TEX0.TBW = dst_match->m_TEX0.TBW;
|
||||||
dst->UpdateValidity(dst->m_valid);
|
dst->UpdateValidity(dst->m_valid);
|
||||||
|
|
||||||
dst->m_rt_alpha_scale = false;
|
|
||||||
|
|
||||||
if (!CopyRGBFromDepthToColor(dst, dst_match))
|
if (!CopyRGBFromDepthToColor(dst, dst_match))
|
||||||
{
|
{
|
||||||
// Needed new texture and memory allocation failed.
|
// Needed new texture and memory allocation failed.
|
||||||
|
|
Loading…
Reference in New Issue