From d5fef1c90c39fd59bf139e8a2c080ec75ef37187 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 10 Sep 2002 22:47:05 +0000 Subject: [PATCH] no need to update lightmaps if using r_vertexsurfaces git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2351 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rsurf.c b/gl_rsurf.c index b98ff500..f5fca788 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -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 -- 2.39.2