]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a crash on r_restart related to collision caching
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 14 Mar 2011 12:29:33 +0000 (12:29 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 14 Mar 2011 12:29:33 +0000 (12:29 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10924 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index dbbb262564a14891956b1e3e80c2a7ae174fe9b7..57dee0f89ae36209d56de2d9d22b53ab3430b735 100644 (file)
@@ -3844,6 +3844,9 @@ void gl_main_start(void)
        r_qwskincache = NULL;
        r_qwskincache_size = 0;
 
+       // due to caching of texture_t references, the collision cache must be reset
+       Collision_Cache_Reset(true);
+
        // set up r_skinframe loading system for textures
        memset(&r_skinframe, 0, sizeof(r_skinframe));
        r_skinframe.loadsequence = 1;