mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 23:32:02 +00:00
- fixed: gl_SetFog set the vertex attribute for software lighting mode without checking if the mode is actually on.
This commit is contained in:
parent
d2927c3d8c
commit
917a869a54
1 changed files with 1 additions and 1 deletions
|
@ -611,7 +611,7 @@ void gl_SetFog(int lightlevel, int rellight, const FColormap *cmap, bool isaddit
|
||||||
gl_RenderState.SetFog(fogcolor, fogdensity);
|
gl_RenderState.SetFog(fogcolor, fogdensity);
|
||||||
|
|
||||||
// Korshun: fullbright fog like in software renderer.
|
// Korshun: fullbright fog like in software renderer.
|
||||||
if (glset.brightfog && fogdensity != 0 && fogcolor != 0)
|
if (glset.lightmode == 8 && glset.brightfog && fogdensity != 0 && fogcolor != 0)
|
||||||
glVertexAttrib1f(VATTR_LIGHTLEVEL, 1.0);
|
glVertexAttrib1f(VATTR_LIGHTLEVEL, 1.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue