From ca3c2a2387cd70688aeecdece50bf0d663fb612b Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Wed, 1 Apr 2020 17:12:55 +0200 Subject: [PATCH] rend: use original palette data to compute palette hash --- core/rend/TexCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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];