Only apply the clut offset when using the clut.

This may fix games that use the clut offset having wrong colors.
This commit is contained in:
Unknown W. Brackets committed 2013-05-12 01:56:25 -07:00
1 parent 5a81bfd1fb
commit 4c43da9c23
1 file changed
+1 -1
+1 -1
View File
@@ -185,7 +185,7 @@ void TextureCache::NotifyFramebufferDestroyed(u32 address, VirtualFramebuffer *f
}
static u32 GetClutAddr(u32 clutEntrySize) {
return ((gstate.clutaddr & 0xFFFFFF) | ((gstate.clutaddrupper << 8) & 0x0F000000)) + ((gstate.clutformat >> 16) & 0x1f) * clutEntrySize;
return ((gstate.clutaddr & 0xFFFFFF) | ((gstate.clutaddrupper << 8) & 0x0F000000));
}
static u32 GetClutIndex(u32 index) {