summaryrefslogtreecommitdiff
path: root/games/quake/patches/patch-ak
blob: 9f9f5f238a2c76ad9de45506e7584ab747cb7b98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ak,v 1.1 2000/02/01 02:30:35 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);
 }