(bug #5984) Unload renderer lib
This commit is contained in:
parent
6b13806066
commit
4776fb4767
|
|
@ -3070,11 +3070,18 @@ CL_ShutdownRef
|
||||||
============
|
============
|
||||||
*/
|
*/
|
||||||
void CL_ShutdownRef( void ) {
|
void CL_ShutdownRef( void ) {
|
||||||
if ( !re.Shutdown ) {
|
if ( re.Shutdown ) {
|
||||||
return;
|
re.Shutdown( qtrue );
|
||||||
}
|
}
|
||||||
re.Shutdown( qtrue );
|
|
||||||
Com_Memset( &re, 0, sizeof( re ) );
|
Com_Memset( &re, 0, sizeof( re ) );
|
||||||
|
|
||||||
|
#ifdef USE_RENDERER_DLOPEN
|
||||||
|
if ( rendererLib ) {
|
||||||
|
Sys_UnloadLibrary( rendererLib );
|
||||||
|
rendererLib = NULL;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user