mirror of https://github.com/PCSX2/pcsx2.git
GS/HW: Fix unscaled rect in CopyRGBFromDepthToColor()
Fixes fade transitions when upscaling in GT3.
This commit is contained in:
parent
c94282ce5f
commit
e863da9490
|
@ -2924,8 +2924,9 @@ bool GSTextureCache::CopyRGBFromDepthToColor(Target* dst, Target* depth_src)
|
||||||
{
|
{
|
||||||
if (dst->m_valid_alpha_low || dst->m_valid_alpha_high)
|
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,
|
const GSVector4 copy_rect = GSVector4(tex->GetRect().rintersect(dst->m_texture->GetRect()));
|
||||||
GSVector4(GSVector4i::loadh(dst->m_unscaled_size)), false, false, false, true);
|
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);
|
g_perfmon.Put(GSPerfMon::TextureCopies, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue