From 3d4c4aa5b5f4f1c0fbc934590161a0abe51ef674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 24 Apr 2022 00:42:51 +0200 Subject: [PATCH] Fix regression with CLUT16 textures. See #12188 --- GPU/Common/TextureDecoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Common/TextureDecoder.h b/GPU/Common/TextureDecoder.h index 172bb039f9..7a15a32adc 100644 --- a/GPU/Common/TextureDecoder.h +++ b/GPU/Common/TextureDecoder.h @@ -134,7 +134,7 @@ inline void DeIndexTexture(/*WRITEONLY*/ ClutT *dest, const IndexT *indexed, int } } else { for (int i = 0; i < length; ++i) { - ClutT color = (*indexed++) & 0xFF; + ClutT color = clut[(*indexed++) & 0xFF]; alphaSum &= color; *dest++ = color; }