- fixed: gl_SetFog set the vertex attribute for software lighting mode without checking if the mode is actually on.

This commit is contained in:
Christoph Oelckers 2013-12-23 09:56:16 +01:00
parent d2927c3d8c
commit 917a869a54

View file

@ -611,7 +611,7 @@ void gl_SetFog(int lightlevel, int rellight, const FColormap *cmap, bool isaddit
gl_RenderState.SetFog(fogcolor, fogdensity);
// 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);
}
}