no need to update lightmaps if using r_vertexsurfaces
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 10 Sep 2002 22:47:05 +0000 (22:47 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 10 Sep 2002 22:47:05 +0000 (22:47 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2351 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c

index b98ff50..f5fca78 100644 (file)
@@ -1481,7 +1481,7 @@ void R_DrawSurfaces(entity_render_t *ent, int sky, int normal)
                                surf->currenttexture = t;
                                surf->texturechain = t->surfacechain;
                                t->surfacechain = surf;
-                               if (surf->lightmaptexture != NULL)
+                               if (!r_vertexsurfaces.integer && surf->lightmaptexture != NULL)
                                {
                                        if (surf->cached_dlight
                                        || surf->cached_ambient != r_ambient.value