summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2010-01-17 14:49:34 -0800
committerBrian Paul <brianp@vmware.com>2010-01-18 10:44:53 -0700
commit23ae31820042f2bc4694f7c48696a697d674b802 (patch)
tree18591527553acde3d6b395986eb107c9280a67ed /progs
parentccc888c39ee8a7c460dca5b1b659d28dbbc4c689 (diff)
glxgears: unbind current context before "destroying" it
glXDestroyContext does not destroy the context if it's still connected to some window. Unbind context from window to test it. Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'progs')
-rw-r--r--progs/xdemos/glxgears.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/xdemos/glxgears.c b/progs/xdemos/glxgears.c
index 088f25a357..2993c82416 100644
--- a/progs/xdemos/glxgears.c
+++ b/progs/xdemos/glxgears.c
@@ -771,6 +771,7 @@ main(int argc, char *argv[])
glDeleteLists(gear1, 1);
glDeleteLists(gear2, 1);
glDeleteLists(gear3, 1);
+ glXMakeCurrent(dpy, None, NULL);
glXDestroyContext(dpy, ctx);
XDestroyWindow(dpy, win);
XCloseDisplay(dpy);