OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccc888c
)
glxgears: unbind current context before "destroying" it
author
Marcin Slusarz
<marcin.slusarz@gmail.com>
Sun, 17 Jan 2010 22:49:34 +0000
(14:49 -0800)
committer
Brian Paul
<brianp@vmware.com>
Mon, 18 Jan 2010 17:44:53 +0000
(10:44 -0700)
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>
progs/xdemos/glxgears.c
patch
|
blob
|
history
diff --git
a/progs/xdemos/glxgears.c
b/progs/xdemos/glxgears.c
index
088f25a
..
2993c82
100644
(file)
--- 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);