Fix regression with CLUT16 textures. See #12188

This commit is contained in:
Henrik Rydgård 2022-04-24 00:42:51 +02:00
parent a8ddde5a27
commit 3d4c4aa5b5

View File

@ -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;
}