blob: 0dc7f5925f202745fe13c6a15c7657f5fa281404 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$NetBSD: patch-ak,v 1.3 2009/08/29 19:26:01 wiz Exp $
--- WinQuake/vid_x.c.orig Tue Dec 21 18:40:22 1999
+++ WinQuake/vid_x.c Fri Jan 28 23:34:06 2000
@@ -711,6 +711,9 @@
void VID_Shutdown (void)
{
Con_Printf("VID_Shutdown\n");
+ /* if display hasn't been initialised, we don't have to close it */
+ if (!x_disp)
+ return;
XAutoRepeatOn(x_disp);
XCloseDisplay(x_disp);
}
|