]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
gl_rmain: Small cleanup
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 25 Oct 2020 14:32:19 +0000 (14:32 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 25 Oct 2020 14:32:19 +0000 (14:32 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13031 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index dd222050f6f04aedfe722bab70e485fd5aca2ee1..5fc7862b95e55fe7bca9c0bd1daa92e64e19c18d 100644 (file)
@@ -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);
-                       }
                }
        }