Commit 6daff47a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

GLX: destroy context before window

(cherry picked from commit e9117abcc258fbef86cf5ea57a9d44964d524d02)
parent 5dffd565
...@@ -414,13 +414,12 @@ static void Close (vlc_object_t *obj) ...@@ -414,13 +414,12 @@ static void Close (vlc_object_t *obj)
if (sys->ctx != NULL) if (sys->ctx != NULL)
{ {
if (sys->v1_3) if (sys->v1_3)
{
glXMakeContextCurrent (dpy, None, None, NULL); glXMakeContextCurrent (dpy, None, None, NULL);
glXDestroyWindow (dpy, sys->glwin);
}
else else
glXMakeCurrent (dpy, None, NULL); glXMakeCurrent (dpy, None, NULL);
glXDestroyContext (dpy, sys->ctx); glXDestroyContext (dpy, sys->ctx);
if (sys->v1_3)
glXDestroyWindow (dpy, sys->glwin);
} }
/* show the default cursor */ /* show the default cursor */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment