From d770308f2b6b56b7ba74edec0d5408798cc46113 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 14 Mar 2011 12:29:33 +0000 Subject: [PATCH] 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 --- gl_rmain.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gl_rmain.c b/gl_rmain.c index dbbb2625..57dee0f8 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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; -- 2.39.2