From dfb4ada998eb5e743276842fd1542dd7906645ea Mon Sep 17 00:00:00 2001 From: yabause Date: Mon, 10 Nov 2008 21:40:44 +0000 Subject: [PATCH] Patch by Magliocchetti Riccardo: removed shadow on pal variable (guill: it should be ok, pal isn't used afterward) --- desmume/src/OGLRender.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/OGLRender.cpp b/desmume/src/OGLRender.cpp index 2b7d69775..a0a48f0b1 100644 --- a/desmume/src/OGLRender.cpp +++ b/desmume/src/OGLRender.cpp @@ -650,10 +650,10 @@ static void setTexture(unsigned int format, unsigned int texpal) break; case 5: //4x4 { - unsigned short * pal = (unsigned short *)(ARM9Mem.texPalSlot[0] + (texturePalette<<4)); + pal = (unsigned short *)(ARM9Mem.texPalSlot[0] + (texturePalette<<4)); unsigned short * slot1; unsigned int * map = (unsigned int *)adr; - unsigned d = 0; + unsigned int d = 0; unsigned int * dst = (unsigned int *)texMAP; if ( (texcache[i].frm & 0xc000) == 0x8000) // texel are in slot 2