]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 b98ff500e1452d00962657388d63d6f1aa5ff6ec..f5fca7888c6db21d05c72e9a8088f01527d89227 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