From 821c2ec4c7e61b97cdd5ab7affef15209804bd4c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 2 Apr 2018 20:38:12 +0200 Subject: [PATCH] - removed access to deleted variable. --- src/gl/scene/gl_spritelight.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gl/scene/gl_spritelight.cpp b/src/gl/scene/gl_spritelight.cpp index 400c769ec..d25339b94 100644 --- a/src/gl/scene/gl_spritelight.cpp +++ b/src/gl/scene/gl_spritelight.cpp @@ -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; }