From a18588692418bec02f8c62f8e02fc369136aad17 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 24 Aug 2016 10:26:11 +0300 Subject: [PATCH] Added compatibility handling for fog and dynamic lights used together See http://forum.drdteam.org/viewtopic.php?t=7063 --- src/gl/scene/gl_flats.cpp | 1 + src/gl/scene/gl_walls_draw.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gl/scene/gl_flats.cpp b/src/gl/scene/gl_flats.cpp index d7c47c618..57861d1c1 100644 --- a/src/gl/scene/gl_flats.cpp +++ b/src/gl/scene/gl_flats.cpp @@ -448,6 +448,7 @@ void GLFlat::Draw(int pass, bool trans) // trans only has meaning for GLPASS_LIG case GLPASS_LIGHTTEX: case GLPASS_LIGHTTEX_ADDITIVE: + case GLPASS_LIGHTTEX_FOGGY: DrawLightsCompat(pass); break; diff --git a/src/gl/scene/gl_walls_draw.cpp b/src/gl/scene/gl_walls_draw.cpp index 67f40dd6d..5c0455fdb 100644 --- a/src/gl/scene/gl_walls_draw.cpp +++ b/src/gl/scene/gl_walls_draw.cpp @@ -448,6 +448,7 @@ void GLWall::Draw(int pass) case GLPASS_LIGHTTEX: case GLPASS_LIGHTTEX_ADDITIVE: + case GLPASS_LIGHTTEX_FOGGY: RenderLightsCompat(pass); break;