]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_parse.c
Unload dlcache packs when changing map or disconnecting
[xonotic/darkplaces.git] / cl_parse.c
index 1afbcbe7fd83cc51e0c8d12df82e71e91285cbb9..4a47a0043204b923e2c56f52fd62ce93426d1f96 100644 (file)
@@ -1690,8 +1690,11 @@ static void CL_ParseServerInfo (void)
        {
                SCR_BeginLoadingPlaque(false);
                S_StopAllSounds();
+               // prevent dlcache assets from the previous map from interfering with this one
+               FS_UnloadPacks_dlcache();
                // free q3 shaders so that any newly downloaded shaders will be active
-               Mod_FreeQ3Shaders();
+               // bones_was_here: we free the q3 shaders later in CL_SignonReply
+               //Mod_FreeQ3Shaders();
        }
 
        // check memory integrity