From 5ba41306ea6fdb672940a60b6f3a9a149aae01dc Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Mon, 2 Nov 2015 07:36:37 +0100 Subject: [PATCH] gsdx-tc: HasSharedBits uses PSM not address Nice heap overflow. I'm surprised that it kinda worked. --- plugins/GSdx/GSTextureCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GSdx/GSTextureCache.cpp b/plugins/GSdx/GSTextureCache.cpp index 922a9cb5db..6eac922fab 100644 --- a/plugins/GSdx/GSTextureCache.cpp +++ b/plugins/GSdx/GSTextureCache.cpp @@ -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.