- disable palette emulation when rendering weapons.

The 2D code cannot handle transparency well with it.
This commit is contained in:
Christoph Oelckers 2022-01-08 14:16:18 +01:00
parent 70087ebc12
commit fe0581ed97

View file

@ -162,6 +162,7 @@ void RenderViewpoint(FRenderViewpoint& mainvp, IntRect* bounds, float fov, float
} }
screen->PostProcessScene(false, CM_DEFAULT, flash, []() { screen->PostProcessScene(false, CM_DEFAULT, flash, []() {
hw_int_useindexedcolortextures = false;
Draw2D(&twodpsp, *screen->RenderState()); // draws the weapon sprites Draw2D(&twodpsp, *screen->RenderState()); // draws the weapon sprites
}); });
PostProcess.Unclock(); PostProcess.Unclock();