From: havoc Date: Tue, 10 Sep 2002 22:47:05 +0000 (+0000) Subject: no need to update lightmaps if using r_vertexsurfaces X-Git-Tag: RELEASE_0_2_0_RC1~255 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d5fef1c90c39fd59bf139e8a2c080ec75ef37187;p=xonotic%2Fdarkplaces.git 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 --- 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