Skip to content

Commit

Permalink
GS/HW: Fix unscaled rect in CopyRGBFromDepthToColor()
Browse files Browse the repository at this point in the history
Fixes fade transitions when upscaling in GT3.
  • Loading branch information
stenzek committed May 28, 2024
1 parent c94282c commit e863da9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pcsx2/GS/Renderers/HW/GSTextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2924,8 +2924,9 @@ bool GSTextureCache::CopyRGBFromDepthToColor(Target* dst, Target* depth_src)
{
if (dst->m_valid_alpha_low || dst->m_valid_alpha_high)
{
g_gs_device->StretchRect(dst->m_texture, GSVector4::cxpr(0.0f, 0.0f, 1.0f, 1.0f), tex,
GSVector4(GSVector4i::loadh(dst->m_unscaled_size)), false, false, false, true);
const GSVector4 copy_rect = GSVector4(tex->GetRect().rintersect(dst->m_texture->GetRect()));
g_gs_device->StretchRect(dst->m_texture, copy_rect / GSVector4(GSVector4i(dst->m_texture->GetSize()).xyxy()), tex,
copy_rect, false, false, false, true);
g_perfmon.Put(GSPerfMon::TextureCopies, 1);
}

Expand Down

0 comments on commit e863da9

Please sign in to comment.