Allow CLUT4 to always force a palette

This commit is contained in:
Steam Deck User 2023-03-15 20:57:18 -04:00
parent 06b93a6e59
commit a3d4dae418

View file

@ -208,9 +208,7 @@ void GL_Bind (int texture_index)
// Set the palette (for CLUT4) // Set the palette (for CLUT4)
if (texture.format == GU_PSM_T4) { if (texture.format == GU_PSM_T4) {
// HACK HACK HACK: avoid setting this all the time VID_SetPalette4(texture.palette);
if (last_palette_wasnt_clut4 == qtrue)
VID_SetPalette4(texture.palette);
vid_palmode = GU_PSM_T4; vid_palmode = GU_PSM_T4;
} else { } else {
// HACK HACK HACK: avoid setting this all the time // HACK HACK HACK: avoid setting this all the time