From ecca6bc1f70814b3b3fc5a00d216a0d4d5b51f0c Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 29 Aug 2002 12:44:34 +0000 Subject: [PATCH] speed gain in lightmap updates git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2308 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gl_rsurf.c b/gl_rsurf.c index c4ececd6..86502d13 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -1929,9 +1929,8 @@ void R_SurfMarkLights (entity_render_t *ent) if (!r_vertexsurfaces.integer) { - for (i = 0;i < ent->model->nummodelsurfaces;i++) + for (i = 0, surf = ent->model->surfaces + ent->model->firstmodelsurface;i < ent->model->nummodelsurfaces;i++, surf++) { - surf = ent->model->modelsortedsurfaces[i]; if (surf->visframe == r_framecount && surf->lightmaptexture != NULL) { if (surf->cached_dlight -- 2.39.2