From e9117abcc258fbef86cf5ea57a9d44964d524d02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 1 May 2010 20:58:26 +0300 Subject: [PATCH] GLX: destroy context before window --- modules/video_output/xcb/glx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c index 573ea24896..b67c8b532b 100644 --- a/modules/video_output/xcb/glx.c +++ b/modules/video_output/xcb/glx.c @@ -414,13 +414,12 @@ static void Close (vlc_object_t *obj) if (sys->ctx != NULL) { if (sys->v1_3) - { glXMakeContextCurrent (dpy, None, None, NULL); - glXDestroyWindow (dpy, sys->glwin); - } else glXMakeCurrent (dpy, None, NULL); glXDestroyContext (dpy, sys->ctx); + if (sys->v1_3) + glXDestroyWindow (dpy, sys->glwin); } /* show the default cursor */ -- 2.39.2