From: cloudwalk Date: Wed, 24 Jun 2020 13:47:02 +0000 (+0000) Subject: Don't apply gl_lightmaps to UI elements X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bcae92a79a06a3c8399ca1840f4ba89704e8c6c2;p=xonotic%2Fdarkplaces.git Don't apply gl_lightmaps to UI elements git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12727 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index a205c10d..f38f7fa8 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -6952,7 +6952,7 @@ texture_t *R_GetCurrentTexture(texture_t *t) // lightmaps mode looks bad with dlights using actual texturing, so turn // off the colormap and glossmap, but leave the normalmap on as it still // accurately represents the shading involved - if (gl_lightmaps.integer) + if (gl_lightmaps.integer && ent != &cl_meshentities[MESH_UI].render) { t->basetexture = r_texture_grey128; t->pantstexture = r_texture_black;