mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 21:41:30 +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.
|
// We have no use for Doom lighting special handling here, so disable it for this function.
|
||||||
int oldlightmode = glset.lightmode;
|
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();
|
gl_RenderState.ResetColor();
|
||||||
|
|
Loading…
Reference in a new issue