diff --git a/code/client/cl_main.c b/code/client/cl_main.c index 26faf80f..c03ba61e 100644 --- a/code/client/cl_main.c +++ b/code/client/cl_main.c @@ -3070,11 +3070,18 @@ CL_ShutdownRef ============ */ void CL_ShutdownRef( void ) { - if ( !re.Shutdown ) { - return; + if ( re.Shutdown ) { + re.Shutdown( qtrue ); } - re.Shutdown( qtrue ); + Com_Memset( &re, 0, sizeof( re ) ); + +#ifdef USE_RENDERER_DLOPEN + if ( rendererLib ) { + Sys_UnloadLibrary( rendererLib ); + rendererLib = NULL; + } +#endif } /*