From c2a1e1f229b1658158f11c951d2e687128a47665 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 5 Oct 2000 16:22:18 +0000 Subject: [PATCH] destroy the gl context BEFORE destroying the window. --- source/vid_glx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/vid_glx.c b/source/vid_glx.c index 5e3fc35..8608070 100644 --- a/source/vid_glx.c +++ b/source/vid_glx.c @@ -154,8 +154,8 @@ VID_Shutdown(void) return; Con_Printf("VID_Shutdown\n"); - XDestroyWindow(x_disp, x_win); glXDestroyContext(x_disp, ctx); + XDestroyWindow(x_disp, x_win); x11_restore_vidmode(); #ifdef HAVE_DLOPEN