]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Don't apply gl_lightmaps to UI elements
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 24 Jun 2020 13:47:02 +0000 (13:47 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 24 Jun 2020 13:47:02 +0000 (13:47 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12727 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index a205c10ddec063b2a4a12160cc0bb5be39179d99..f38f7fa8f9b18a2c5511a76a95c1f618953f2ce7 100644 (file)
@@ -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;