mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-13 01:30:29 +01:00
gsdx-tc: remains in the memory
avoid a crash with kungfu panda
This commit is contained in:
1 parent
a4bad8fdbc
commit
5f8d3b9e4b
1 file changed
+2
-2
@@ -491,11 +491,11 @@ void GSTextureCache::InvalidateVideoMem(GSOffset* off, const GSVector4i& rect, b
|
||||
}
|
||||
}
|
||||
|
||||
if (bw >= 16) {
|
||||
uint32 bbp = bp + bw * 0x10;
|
||||
if (bw >= 16 && bbp < 16384) {
|
||||
// Detect half of the render target (fix snow engine game)
|
||||
// Target Page (8KB) have always a width of 64 pixels
|
||||
// Half of the Target is TBW/2 pages * 8KB / (1 block * 256B) = 0x10
|
||||
uint32 bbp = bp + bw * 0x10;
|
||||
|
||||
const list<Source*>& m = m_src.m_map[bbp >> 5];
|
||||
|
||||
|
||||
Reference in new issue
Block a user