mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
Revert "- disabled palette emulation for the GLES backend."
This reverts commit 8d9d3d5f8f
.
This commit is contained in:
parent
10c6fde8d6
commit
9501215ef2
2 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue