diff --git a/core/rend/TexCache.cpp b/core/rend/TexCache.cpp index 1019ca999..e0b2f0bbf 100644 --- a/core/rend/TexCache.cpp +++ b/core/rend/TexCache.cpp @@ -125,9 +125,9 @@ void palette_update() break; } for (int i = 0; i < 64; i++) - pal_hash_16[i] = XXH32(&palette32_ram[i << 4], 16 * 4, 7); + pal_hash_16[i] = XXH32(&PALETTE_RAM[i << 4], 16 * 4, 7); for (int i = 0; i < 4; i++) - pal_hash_256[i] = XXH32(&palette32_ram[i << 8], 256 * 4, 7); + pal_hash_256[i] = XXH32(&PALETTE_RAM[i << 8], 256 * 4, 7); } std::vector VramLocks[VRAM_SIZE_MAX / PAGE_SIZE];