[vlc-commits] commit: GLX: destroy context before window ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Sat May 1 20:08:18 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May  1 20:58:26 2010 +0300| [e9117abcc258fbef86cf5ea57a9d44964d524d02] | committer: Rémi Denis-Courmont 

GLX: destroy context before window

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e9117abcc258fbef86cf5ea57a9d44964d524d02
---

 modules/video_output/xcb/glx.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index 573ea24..b67c8b5 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 */



More information about the vlc-commits mailing list