From 9501215ef2af08acc7ba2653ba685aabc599ce7c Mon Sep 17 00:00:00 2001 From: Emile Belanger Date: Fri, 3 Dec 2021 17:05:54 +0000 Subject: [PATCH] Revert "- disabled palette emulation for the GLES backend." This reverts commit 8d9d3d5f8fe0f0bde0a366fe720124150cea5447. --- source/core/rendering/hw_entrypoint.cpp | 3 +-- source/glbackend/glbackend.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/core/rendering/hw_entrypoint.cpp b/source/core/rendering/hw_entrypoint.cpp index 27bffd990..6686db30e 100644 --- a/source/core/rendering/hw_entrypoint.cpp +++ b/source/core/rendering/hw_entrypoint.cpp @@ -53,7 +53,6 @@ #include "gamehud.h" EXTERN_CVAR(Bool, cl_capfps) -EXTERN_CVAR(Int, vid_preferbackend) PalEntry GlobalMapFog; float GlobalFogDensity = 350.f; @@ -119,7 +118,7 @@ void RenderViewpoint(FRenderViewpoint& mainvp, IntRect* bounds, float fov, float auto vrmode = VRMode::GetVRMode(mainview && toscreen); const int eyeCount = vrmode->mEyeCount; screen->FirstEye(); - hw_int_useindexedcolortextures = eyeCount > 1 || vid_preferbackend == 3? false : *hw_useindexedcolortextures; + hw_int_useindexedcolortextures = eyeCount > 1? false : *hw_useindexedcolortextures; for (int eye_ix = 0; eye_ix < eyeCount; ++eye_ix) { diff --git a/source/glbackend/glbackend.cpp b/source/glbackend/glbackend.cpp index 6d02ddea1..d9d09ffe9 100644 --- a/source/glbackend/glbackend.cpp +++ b/source/glbackend/glbackend.cpp @@ -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.