From: divverent Date: Sat, 22 Dec 2007 16:55:05 +0000 (+0000) Subject: forgot to compare fog mask table range, too X-Git-Tag: xonotic-v0.1.0preview~2650 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=91340cf3733191698ed0257c17005c96b8936c9f;p=xonotic%2Fdarkplaces.git forgot to compare fog mask table range, too git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7841 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 5550d7a1..ee6ceb4b 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -397,6 +397,7 @@ static void R_BuildFogTexture(void) r_refdef.fogmasktable_start = r_refdef.fog_start; r_refdef.fogmasktable_alpha = r_refdef.fog_alpha; + r_refdef.fogmasktable_range = r_refdef.fogrange; s = r_refdef.fogmasktable_start / r_refdef.fogrange; s = bound(0, s, 0.999); @@ -3285,7 +3286,7 @@ void R_UpdateVariables(void) r_refdef.fogmasktabledistmultiplier = FOGMASKTABLEWIDTH * r_refdef.fograngerecip; // fog color was already set // update the fog texture - if (r_refdef.fogmasktable_start != r_refdef.fog_start || r_refdef.fogmasktable_alpha != r_refdef.fog_alpha) + if (r_refdef.fogmasktable_start != r_refdef.fog_start || r_refdef.fogmasktable_alpha != r_refdef.fog_alpha || r_refdef.fogmasktable_range != r_refdef.fogrange) R_BuildFogTexture(); } else