summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderergl2/tr_init.c')
-rw-r--r--src/renderergl2/tr_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/renderergl2/tr_init.c b/src/renderergl2/tr_init.c
index 170f3204..dd0c355e 100644
--- a/src/renderergl2/tr_init.c
+++ b/src/renderergl2/tr_init.c
@@ -1400,6 +1400,9 @@ void RE_Shutdown( qboolean destroyWindow ) {
// shut down platform specific OpenGL stuff
if ( destroyWindow ) {
GLimp_Shutdown();
+
+ Com_Memset( &glConfig, 0, sizeof( glConfig ) );
+ Com_Memset( &glState, 0, sizeof( glState ) );
}
tr.registered = qfalse;