From 47d1f32605adf4633cbd77d8152b2da0533fe263 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Wed, 24 Jun 2020 14:15:20 +0000 Subject: [PATCH] Fix remnants of fog being applied to UIs Thanks to nico for reporting this git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12728 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index f38f7fa8..b36f2466 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -1843,7 +1843,7 @@ void R_SetupShader_Surface(const float rtlightambient[3], const float rtlightdif // lightmapped wall if ((t->glowtexture || t->backgroundglowtexture) && r_hdr_glowintensity.value > 0 && !gl_lightmaps.integer) permutation |= SHADERPERMUTATION_GLOW; - if (r_refdef.fogenabled) + if (r_refdef.fogenabled && !notrippy) permutation |= r_texture_fogheighttexture ? SHADERPERMUTATION_FOGHEIGHTTEXTURE : (r_refdef.fogplaneviewabove ? SHADERPERMUTATION_FOGOUTSIDE : SHADERPERMUTATION_FOGINSIDE); if (t->colormapping) permutation |= SHADERPERMUTATION_COLORMAPPING; -- 2.39.2