From: cloudwalk Date: Sun, 25 Oct 2020 14:32:19 +0000 (+0000) Subject: gl_rmain: Small cleanup X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=ad05a040cdf67162a916a1336c3be0b59d9bd91a;p=xonotic%2Fdarkplaces.git gl_rmain: Small cleanup git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13031 d7cf8633-e32d-0410-b094-e92efae38249 --- 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); - } } }