GS-TC: Use the expected rect to expand the target when Tex is RT.

This commit is contained in:
refractionpcsx2 2023-04-22 17:58:27 +01:00
parent 0ab6eb6587
commit 76014b7cb9
1 changed files with 1 additions and 2 deletions

View File

@ -856,8 +856,7 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con
// If the source is reading the rt, make sure it's big enough.
if (t && GSUtil::HasCompatibleBits(psm, t->m_TEX0.PSM))
{
GSVector4i dirty_rect = t->m_dirty.GetTotalRect(t->m_TEX0, GSVector2i(new_rect.z, new_rect.w));
const GSVector2i size_delta = { (dirty_rect.z - t->m_valid.z), (dirty_rect.w - t->m_valid.w) };
const GSVector2i size_delta = { (new_rect.z - t->m_valid.z), (new_rect.w - t->m_valid.w) };
if (size_delta.x > 0 || size_delta.y > 0)
{
RGBAMask rgba;