gsdx: wrap bp for block ptr

Fix massive flickering of Beyond Good&Evil on SW renderer (HW happily overflow)
This commit is contained in:
Gregory Hainaut 2016-11-04 23:03:12 +01:00
parent 3d65312999
commit 758cf25888
1 changed files with 1 additions and 3 deletions

View File

@ -232,9 +232,7 @@ public:
uint8* BlockPtr(uint32 bp) const
{
ASSERT(bp < 16384);
return &m_vm8[bp << 8];
return &m_vm8[(bp % MAX_BLOCKS) << 8];
}
uint8* BlockPtr32(int x, int y, uint32 bp, uint32 bw) const