From c47c3169b3d381dcb128c048a231ab5ef0505e93 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 9 Aug 2013 23:38:30 +0200 Subject: [PATCH] - fixed: Dynamic lights may not execute their tick() function when the software renderer is active. --- src/gl/dynlights/a_dynlight.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gl/dynlights/a_dynlight.cpp b/src/gl/dynlights/a_dynlight.cpp index 731b4dfd23..80dc4e5434 100644 --- a/src/gl/dynlights/a_dynlight.cpp +++ b/src/gl/dynlights/a_dynlight.cpp @@ -52,6 +52,7 @@ EXTERN_CVAR (Float, gl_lights_size); EXTERN_CVAR (Bool, gl_lights_additive); +EXTERN_CVAR(Int, vid_renderer) //========================================================================== @@ -218,7 +219,10 @@ void ADynamicLight::Deactivate(AActor *activator) //========================================================================== void ADynamicLight::Tick() { - + if (vid_renderer == 0) + { + return; + } if (IsOwned()) { if (!target || !target->state)