From: havoc Date: Mon, 14 Mar 2011 12:29:33 +0000 (+0000) Subject: fix a crash on r_restart related to collision caching X-Git-Tag: xonotic-v0.5.0~382 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=55f5d4ea9b62859f0cb0e12c244ddca6e5c6d83f;p=xonotic%2Fdarkplaces.git fix a crash on r_restart related to collision caching git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10924 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=d770308f2b6b56b7ba74edec0d5408798cc46113 --- diff --git a/gl_rmain.c b/gl_rmain.c index c6d4f331..6638a3a0 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -3861,6 +3861,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;