- enable palette emulation for the new renderer.

This commit is contained in:
Christoph Oelckers 2021-04-05 13:04:51 +02:00
parent be8df3488d
commit 87efc84c84

View file

@ -117,6 +117,8 @@ void RenderViewpoint(FRenderViewpoint& mainvp, IntRect* bounds, float fov, float
auto vrmode = VRMode::GetVRMode(mainview && toscreen); auto vrmode = VRMode::GetVRMode(mainview && toscreen);
const int eyeCount = vrmode->mEyeCount; const int eyeCount = vrmode->mEyeCount;
screen->FirstEye(); screen->FirstEye();
hw_int_useindexedcolortextures = eyeCount > 1? false : *hw_useindexedcolortextures;
for (int eye_ix = 0; eye_ix < eyeCount; ++eye_ix) for (int eye_ix = 0; eye_ix < eyeCount; ++eye_ix)
{ {
const auto& eye = vrmode->mEyes[eye_ix]; const auto& eye = vrmode->mEyes[eye_ix];
@ -164,6 +166,7 @@ void RenderViewpoint(FRenderViewpoint& mainvp, IntRect* bounds, float fov, float
if (eyeCount - eye_ix > 1) if (eyeCount - eye_ix > 1)
screen->NextEye(eyeCount); screen->NextEye(eyeCount);
} }
hw_int_useindexedcolortextures = false;
} }
//=========================================================================== //===========================================================================