From: Marcin Slusarz Date: Sun, 17 Jan 2010 22:49:34 +0000 (-0800) Subject: glxgears: unbind current context before "destroying" it X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23ae31820042f2bc4694f7c48696a697d674b802;p=mesa.git 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 --- diff --git a/progs/xdemos/glxgears.c b/progs/xdemos/glxgears.c index 088f25a357a..2993c824161 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);