Note to Id Software.: In GLX, destroy the GL context *AFTER* destroying

the window that it draws into, not before.
This commit is contained in:
Jeff Teunissen 2001-12-28 19:58:24 +00:00
parent 49ae964011
commit 126b17d1d2

View file

@ -758,10 +758,10 @@ void GLimp_Shutdown( void )
dgamouse = false; dgamouse = false;
if (dpy) { if (dpy) {
if (ctx)
qglXDestroyContext(dpy, ctx);
if (win) if (win)
XDestroyWindow(dpy, win); XDestroyWindow(dpy, win);
if (ctx)
qglXDestroyContext(dpy, ctx);
if (vidmode_active) if (vidmode_active)
XF86VidModeSwitchToMode(dpy, scrnum, vidmodes[0]); XF86VidModeSwitchToMode(dpy, scrnum, vidmodes[0]);
XCloseDisplay(dpy); XCloseDisplay(dpy);