From ad05a040cdf67162a916a1336c3be0b59d9bd91a Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sun, 25 Oct 2020 14:32:19 +0000 Subject: [PATCH] gl_rmain: Small cleanup git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13031 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gl_rmain.c b/gl_rmain.c index dd222050..5fc7862b 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -10084,14 +10084,10 @@ void R_DrawModelSurfaces(entity_render_t *ent, qbool skysurfaces, qbool writedep // update lightmaps if needed if (update) { - int updated = 0; for (j = model->firstmodelsurface, endj = model->firstmodelsurface + model->nummodelsurfaces;j < endj;j++) { if (update[j]) - { - updated++; R_BuildLightMap(ent, surfaces + j); - } } } -- 2.39.2