From 90428db3d5185b2bd1fad986e82c8a82a678da88 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 7 Jan 2021 22:47:58 +0900 Subject: [PATCH] [glsl] Remove stray return statement I have no idea why that was in that patch and certainly does not seem to be correct. --- libs/video/renderer/glsl/glsl_bsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/video/renderer/glsl/glsl_bsp.c b/libs/video/renderer/glsl/glsl_bsp.c index 767000b12..acdaf22c6 100644 --- a/libs/video/renderer/glsl/glsl_bsp.c +++ b/libs/video/renderer/glsl/glsl_bsp.c @@ -360,7 +360,7 @@ static void update_lightmap (msurface_t *surf) { int maps; -return; + for (maps = 0; maps < MAXLIGHTMAPS && surf->styles[maps] != 255; maps++) if (d_lightstylevalue[surf->styles[maps]] != surf->cached_light[maps]) goto dynamic;