From faa08410de97c19254c8ea60815a2f8317fcfa3c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 1 Feb 2016 19:10:15 +0100 Subject: [PATCH] - handle nocoloredspritelighting with 3D light splitter --- src/gl/scene/gl_sprite.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gl/scene/gl_sprite.cpp b/src/gl/scene/gl_sprite.cpp index bfd2a9deb..0fb01eb13 100644 --- a/src/gl/scene/gl_sprite.cpp +++ b/src/gl/scene/gl_sprite.cpp @@ -248,6 +248,11 @@ void GLSprite::Draw(int pass) FColormap thiscm; thiscm.FadeColor = Colormap.FadeColor; thiscm.CopyFrom3DLight(&(*lightlist)[i]); + if (glset.nocoloredspritelighting) + { + thiscm.Decolorize(); + } + gl_SetColor(thisll, rel, thiscm, trans); gl_RenderState.SetSplitPlanes(*topplane, *lowplane); }