mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-12-12 13:42:21 +00:00
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:
parent
49ae964011
commit
126b17d1d2
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue