From 0229fbee95a0110d1a9eb293be4bbfd4f31ec7a5 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 23 Dec 2007 20:53:29 +0000 Subject: [PATCH] fix fog after r_restart git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7851 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gl_rmain.c b/gl_rmain.c index e6a92360..18cf387c 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -1904,6 +1904,8 @@ void gl_main_start(void) memset(&r_waterstate, 0, sizeof(r_waterstate)); memset(r_glsl_permutations, 0, sizeof(r_glsl_permutations)); memset(&r_svbsp, 0, sizeof (r_svbsp)); + + r_refdef.fogmasktable_density = 0; } void gl_main_shutdown(void) -- 2.39.2