try to fix segfault caused by VID_Shutdown getting called before VID_Init

(error conditions).
This commit is contained in:
Bill Currie 2003-08-27 22:50:39 +00:00
parent c2053fbfb1
commit 93327cb618

View file

@ -144,14 +144,12 @@ QFGL_LoadLibrary (void)
void
VID_Shutdown (void)
{
if (!vid.initialized)
return;
Con_Printf ("VID_Shutdown\n");
if (x_disp) {
X11_RestoreVidMode ();
X11_CloseDisplay ();
}
}
static void
GL_Init (void)