- fixed: The sky renderer must not only alter the light mode but also reset the software light level to a 'disabled' value.

This commit is contained in:
Christoph Oelckers 2014-12-25 22:45:40 +01:00
parent ffa069205f
commit c66a211200

View file

@ -471,7 +471,11 @@ void GLSkyPortal::DrawContents()
// We have no use for Doom lighting special handling here, so disable it for this function.
int oldlightmode = glset.lightmode;
if (glset.lightmode == 8) glset.lightmode = 2;
if (glset.lightmode == 8)
{
glset.lightmode = 2;
gl_RenderState.SetSoftLightLevel(-1);
}
gl_RenderState.ResetColor();