diff --git a/libs/video/targets/vid_glx.c b/libs/video/targets/vid_glx.c index 60b333d95..3d44a5a3c 100644 --- a/libs/video/targets/vid_glx.c +++ b/libs/video/targets/vid_glx.c @@ -144,13 +144,11 @@ QFGL_LoadLibrary (void) void VID_Shutdown (void) { - if (!vid.initialized) - return; - Con_Printf ("VID_Shutdown\n"); - - X11_RestoreVidMode (); - X11_CloseDisplay (); + if (x_disp) { + X11_RestoreVidMode (); + X11_CloseDisplay (); + } } static void