- fixed: Dynamic lights may not execute their tick() function when the software renderer is active.

This commit is contained in:
Christoph Oelckers 2013-08-09 23:38:30 +02:00
parent 62fd6c8e74
commit c47c3169b3

View file

@ -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)