From 126b17d1d2feeee2a715c72ecf3f647885df3271 Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Fri, 28 Dec 2001 19:58:24 +0000 Subject: [PATCH] Note to Id Software.: In GLX, destroy the GL context *AFTER* destroying the window that it draws into, not before. --- linux/gl_glx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/gl_glx.c b/linux/gl_glx.c index 2c021d7..8b8ade4 100644 --- a/linux/gl_glx.c +++ b/linux/gl_glx.c @@ -758,10 +758,10 @@ void GLimp_Shutdown( void ) dgamouse = false; if (dpy) { - if (ctx) - qglXDestroyContext(dpy, ctx); if (win) XDestroyWindow(dpy, win); + if (ctx) + qglXDestroyContext(dpy, ctx); if (vidmode_active) XF86VidModeSwitchToMode(dpy, scrnum, vidmodes[0]); XCloseDisplay(dpy);