From 917a869a54b75866eb8deeaca6474294ce625519 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 23 Dec 2013 09:56:16 +0100 Subject: [PATCH] - fixed: gl_SetFog set the vertex attribute for software lighting mode without checking if the mode is actually on. --- src/gl/renderer/gl_lightdata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/renderer/gl_lightdata.cpp b/src/gl/renderer/gl_lightdata.cpp index 88d24cc02e..9292c765ee 100644 --- a/src/gl/renderer/gl_lightdata.cpp +++ b/src/gl/renderer/gl_lightdata.cpp @@ -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); } }