mirror of https://github.com/PCSX2/pcsx2.git
GS: update target pitch on frame lookup.
fix Jurassic Park - Operation Genesis loading disk logo.
This commit is contained in:
parent
7e8c6fcc9d
commit
fede91a98b
|
@ -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)
|
// 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)
|
if (!dst)
|
||||||
for (auto t :list)
|
for (auto t : list)
|
||||||
if (bp == t->m_TEX0.TBP0)
|
if (bp == t->m_TEX0.TBP0)
|
||||||
{
|
{
|
||||||
dst = t;
|
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));
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
if (dst)
|
||||||
|
dst->m_TEX0.TBW = TEX0.TBW; // Fix Jurassic Park - Operation Genesis loading disk logo.
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dst)
|
if (dst)
|
||||||
|
|
Loading…
Reference in New Issue