(bug #5984) Unload renderer lib

This commit is contained in:
Zack Middleton 2013-07-08 16:36:30 -06:00
parent 6b13806066
commit 4776fb4767
1 changed files with 10 additions and 3 deletions

View File

@ -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
}
/*