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

GLX: destroy context before window

(cherry picked from commit e9117abc)
parent 5dffd565
......@@ -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 */
......
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