Merge branch 'fix-opengl-saturation' into 'next'

Fix saturation not being applied on colormaps in OpenGL

Closes #920

See merge request STJr/SRB2!2151
This commit is contained in:
Monster Iestyn 2023-10-29 16:37:35 +00:00
commit 512839453b

View file

@ -229,6 +229,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;