From 91340cf3733191698ed0257c17005c96b8936c9f Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 22 Dec 2007 16:55:05 +0000 Subject: [PATCH] forgot to compare fog mask table range, too git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7841 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2