From e2347a09a56bab7bb3c58f44b53cf14ac8c98193 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Thu, 13 Nov 2014 00:16:42 +0600 Subject: [PATCH] Mask TMEM address. Fixed images load in Blast Corps. --- Textures.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Textures.cpp b/Textures.cpp index 0044c7a4..c3c333e0 100644 --- a/Textures.cpp +++ b/Textures.cpp @@ -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) {