From 50cdcc79c853c3702f55be68a49f3934445a9ae4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 10 May 2018 09:05:26 +0200 Subject: [PATCH] - fixed OpenGL2.0 may not call the modern light setup code. --- src/gl/scene/gl_flats.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gl/scene/gl_flats.cpp b/src/gl/scene/gl_flats.cpp index 950a74cff..361b920e9 100644 --- a/src/gl/scene/gl_flats.cpp +++ b/src/gl/scene/gl_flats.cpp @@ -174,6 +174,7 @@ void FDrawInfo::DrawSubsectors(GLFlat *flat, int pass, bool processlights, bool int dli = flat->dynlightindex; gl_RenderState.Apply(); + if (gl.legacyMode) processlights = false; if (flat->vboindex >= 0) { int index = flat->vboindex;