1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Mask TMEM address.

Fixed images load in Blast Corps.
This commit is contained in:
Sergey Lipskiy 2014-11-13 00:16:42 +06:00
parent a9d31124a0
commit e2347a09a5

View File

@ -719,7 +719,7 @@ void TextureCache::_load(u32 _tile , CachedTexture *_pTexture)
if (y & mirrorTBit)
ty ^= maskTMask;
pSrc = &TMEM[tmptex.tMem] + line * ty;
pSrc = &TMEM[(tmptex.tMem + line * ty)&0x1FF];
i = (ty & 1) << 1;
for (x = 0; x < tmptex.realWidth; ++x) {