mirror of https://github.com/PCSX2/pcsx2.git
GS/HW: Set valid rect on targets created by Move
This commit is contained in:
parent
f70a140f42
commit
739f9ec758
|
@ -1689,7 +1689,10 @@ bool GSTextureCache::Move(u32 SBP, u32 SBW, u32 SPSM, int sx, int sy, u32 DBP, u
|
||||||
const GSVector2 scale(src->m_texture->GetScale());
|
const GSVector2 scale(src->m_texture->GetScale());
|
||||||
dst = LookupTarget(new_TEX0, GSVector2i(static_cast<int>(w * scale.x), static_cast<int>(real_height * scale.y)), src->m_type, true);
|
dst = LookupTarget(new_TEX0, GSVector2i(static_cast<int>(w * scale.x), static_cast<int>(real_height * scale.y)), src->m_type, true);
|
||||||
if (dst)
|
if (dst)
|
||||||
|
{
|
||||||
dst->m_texture->SetScale(scale);
|
dst->m_texture->SetScale(scale);
|
||||||
|
dst->UpdateValidity(GSVector4i(dx, dy, dx + w, dy + h));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!src || !dst || src->m_texture->GetScale() != dst->m_texture->GetScale())
|
if (!src || !dst || src->m_texture->GetScale() != dst->m_texture->GetScale())
|
||||||
|
|
Loading…
Reference in New Issue