From 87efc84c84a3f78c1b3b1ddfb5fd95eb7a40d8d5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 5 Apr 2021 13:04:51 +0200 Subject: [PATCH] - enable palette emulation for the new renderer. --- source/core/rendering/hw_entrypoint.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/core/rendering/hw_entrypoint.cpp b/source/core/rendering/hw_entrypoint.cpp index f5f97adb8..61d622034 100644 --- a/source/core/rendering/hw_entrypoint.cpp +++ b/source/core/rendering/hw_entrypoint.cpp @@ -117,6 +117,8 @@ 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? false : *hw_useindexedcolortextures; + for (int eye_ix = 0; eye_ix < eyeCount; ++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) screen->NextEye(eyeCount); } + hw_int_useindexedcolortextures = false; } //===========================================================================