destroy the gl context BEFORE destroying the window.

This commit is contained in:
Bill Currie 2000-10-05 16:22:18 +00:00
parent 4c0d05a73b
commit c2a1e1f229

View file

@ -154,8 +154,8 @@ VID_Shutdown(void)
return; return;
Con_Printf("VID_Shutdown\n"); Con_Printf("VID_Shutdown\n");
XDestroyWindow(x_disp, x_win);
glXDestroyContext(x_disp, ctx); glXDestroyContext(x_disp, ctx);
XDestroyWindow(x_disp, x_win);
x11_restore_vidmode(); x11_restore_vidmode();
#ifdef HAVE_DLOPEN #ifdef HAVE_DLOPEN