Revert "- disabled palette emulation for the GLES backend."

This reverts commit 8d9d3d5f8f.
This commit is contained in:
Emile Belanger 2021-12-03 17:05:54 +00:00 committed by Christoph Oelckers
parent 10c6fde8d6
commit 9501215ef2
2 changed files with 2 additions and 4 deletions

View file

@ -54,7 +54,6 @@
#include "gamehud.h"
CVARD(Bool, hw_hightile, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "enable/disable hightile texture rendering")
EXTERN_CVAR(Int, vid_preferbackend)
bool hw_int_useindexedcolortextures;
CUSTOM_CVARD(Bool, hw_useindexedcolortextures, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "enable/disable indexed color texture rendering")
{
@ -99,7 +98,7 @@ void GLInstance::DoDraw()
if (rendercommands.Size() > 0)
{
if (!useMapFog && vid_preferbackend != 3) hw_int_useindexedcolortextures = hw_useindexedcolortextures;
if (!useMapFog) hw_int_useindexedcolortextures = hw_useindexedcolortextures;
lastState.Flags = ~rendercommands[0].StateFlags; // Force ALL flags to be considered 'changed'.
lastState.DepthFunc = INT_MIN; // Something totally invalid.