- removed access to deleted variable.

This commit is contained in:
Christoph Oelckers 2018-04-02 20:38:12 +02:00 committed by drfrag666
parent 26a782031c
commit cad63e9b48

View file

@ -139,7 +139,6 @@ void gl_SetDynSpriteLight(AActor *self, float x, float y, float z, subsector_t *
node = node->nextLight;
}
gl_RenderState.SetDynLight(out[0], out[1], out[2]);
modellightindex = -1;
}
void gl_SetDynSpriteLight(AActor *thing, particle_t *particle)
@ -162,7 +161,6 @@ int gl_SetDynModelLight(AActor *self, int dynlightindex)
if (gl.lightmethod == LM_DEFERRED && dynlightindex != -1)
{
gl_RenderState.SetDynLight(0, 0, 0);
modellightindex = dynlightindex;
return dynlightindex;
}
@ -220,7 +218,6 @@ int gl_SetDynModelLight(AActor *self, int dynlightindex)
if (gl.lightmethod != LM_DEFERRED)
{
gl_RenderState.SetDynLight(0, 0, 0);
modellightindex = dynlightindex;
}
return dynlightindex;
}