Fix saturation not being applied on colormaps in OpenGL

This commit is contained in:
Gustaf Alhäll 2023-09-18 18:16:10 +02:00
parent f02fd19c5a
commit fc20508295
No known key found for this signature in database
GPG key ID: 6C1F67D690CDEDFD

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;