mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
try to fix segfault caused by VID_Shutdown getting called before VID_Init
(error conditions).
This commit is contained in:
parent
c2053fbfb1
commit
93327cb618
1 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue