(bug #5984) Unload renderer lib
This commit is contained in:
parent
6b13806066
commit
4776fb4767
1 changed files with 10 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue