diff --git a/src/gl/dynlights/a_dynlight.cpp b/src/gl/dynlights/a_dynlight.cpp index 731b4dfd2..80dc4e543 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)