gsdx-tc: HasSharedBits uses PSM not address

Nice heap overflow. I'm surprised that it kinda worked.
This commit is contained in:
Gregory Hainaut 2015-11-02 07:36:37 +01:00
parent 6a38e1d06e
commit 5ba41306ea
1 changed files with 1 additions and 1 deletions

View File

@ -629,7 +629,7 @@ void GSTextureCache::InvalidateVideoMem(GSOffset* off, const GSVector4i& rect, b
delete t;
continue;
}
} else if (GSUtil::HasSharedBits(bp, t->m_TEX0.TBP0)) {
} else if (bp == t->m_TEX0.TBP0) {
// EE writes the ALPHA channel. Mark it as invalid for
// the texture cache. Otherwise it will generate a wrong
// hit on the texture cache.