Bugfix an 8-bit indexed texture format

This commit is contained in:
Henrik Rydgard 2012-11-18 18:47:29 +01:00
parent 75412b064b
commit 9ec858a64d

View File

@ -238,7 +238,7 @@ void *readIndexedTex(u32 level, u32 texaddr, u32 bytesPerIndex)
u32 n = tmpTexBuf32[j];
u32 k;
for (k = 0; k < 4; k++) {
u8 index = (n >> (k * 4)) & 0xff;
u8 index = (n >> (k * 8)) & 0xff;
tmpTexBuf16[i + k] = clut[GetClutIndex(index)];
}
}