summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/cl_main.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/client/cl_main.c b/src/client/cl_main.c
index ec3dd09b..8dd127e0 100644
--- a/src/client/cl_main.c
+++ b/src/client/cl_main.c
@@ -3139,11 +3139,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
}
/*