From 2733480d8cdb3b67f93eccbd5f94ac89fae5e783 Mon Sep 17 00:00:00 2001 From: NepDisk <16447892+NepDisk@users.noreply.github.com> Date: Thu, 1 Aug 2024 00:23:02 -0400 Subject: [PATCH] Reapply "Fix saturation not being applied on colormaps in OpenGL" This reverts commit 6fb38b9c7ba320e1836c74d3613e33fc544e50be. --- src/hardware/hw_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 741244526..9aec64fad 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -249,6 +249,8 @@ void HWR_Lighting(FSurfaceInfo *Surface, INT32 light_level, extracolormap_t *col // Clamp the light level, since it can sometimes go out of the 0-255 range from animations light_level = min(max(light_level, 0), 255); + V_CubeApply(&tint_color.s.red, &tint_color.s.green, &tint_color.s.blue); + V_CubeApply(&fade_color.s.red, &fade_color.s.green, &fade_color.s.blue); Surface->PolyColor.rgba = poly_color.rgba; Surface->TintColor.rgba = tint_color.rgba; Surface->FadeColor.rgba = fade_color.rgba;