mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-28 14:52:01 +00:00
- 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:
parent
ffa069205f
commit
c66a211200
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue