- removed access to deleted variable.

This commit is contained in:
Christoph Oelckers 2018-04-02 20:38:12 +02:00
parent b0460eee19
commit 821c2ec4c7
1 changed files with 0 additions and 3 deletions

View File

@ -136,7 +136,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)
@ -202,7 +201,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;
}
@ -260,7 +258,6 @@ int gl_SetDynModelLight(AActor *self, int dynlightindex)
if (gl.lightmethod != LM_DEFERRED)
{
gl_RenderState.SetDynLight(0, 0, 0);
modellightindex = dynlightindex;
}
return dynlightindex;
}