GS: update target pitch on frame lookup.

fix Jurassic Park - Operation Genesis loading disk logo.
This commit is contained in:
iMineLink 2022-02-06 17:31:16 +01:00 committed by refractionpcsx2
parent 7e8c6fcc9d
commit fede91a98b
1 changed files with 3 additions and 1 deletions

View File

@ -502,13 +502,15 @@ GSTextureCache::Target* GSTextureCache::LookupTarget(const GIFRegTEX0& TEX0, con
// 3rd try ! Try to find a frame that doesn't contain valid data (honestly I'm not sure we need to do it)
if (!dst)
for (auto t :list)
for (auto t : list)
if (bp == t->m_TEX0.TBP0)
{
dst = t;
GL_CACHE("TC: Lookup Frame %dx%d, empty hit: %d (0x%x -> 0x%x %s)", size.x, size.y, dst->m_texture->GetID(), bp, t->m_end_block, psm_str(TEX0.PSM));
break;
}
if (dst)
dst->m_TEX0.TBW = TEX0.TBW; // Fix Jurassic Park - Operation Genesis loading disk logo.
}
if (dst)