From fe0581ed9782a5c0e43c6e34827af3bd20b76bb1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 8 Jan 2022 14:16:18 +0100 Subject: [PATCH] - disable palette emulation when rendering weapons. The 2D code cannot handle transparency well with it. --- source/core/rendering/hw_entrypoint.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/core/rendering/hw_entrypoint.cpp b/source/core/rendering/hw_entrypoint.cpp index c855b5d69..42b8b2e88 100644 --- a/source/core/rendering/hw_entrypoint.cpp +++ b/source/core/rendering/hw_entrypoint.cpp @@ -162,6 +162,7 @@ void RenderViewpoint(FRenderViewpoint& mainvp, IntRect* bounds, float fov, float } screen->PostProcessScene(false, CM_DEFAULT, flash, []() { + hw_int_useindexedcolortextures = false; Draw2D(&twodpsp, *screen->RenderState()); // draws the weapon sprites }); PostProcess.Unclock();