]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix fog after r_restart
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 Dec 2007 20:53:29 +0000 (20:53 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 Dec 2007 20:53:29 +0000 (20:53 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7851 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index e6a92360f9b47125825185ac08268743ec963aba..18cf387c0bfceee22e42288415916cc1f33b798e 100644 (file)
@@ -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)