Commit 6023de82 authored by Thomas Guillem's avatar Thomas Guillem

vout: ios: call ReleaseCurrent only if needed when closing

parent d7e2a4ff
......@@ -239,9 +239,10 @@ static void Close (vlc_object_t *this)
if (likely(glsys->vgl))
{
vlc_gl_MakeCurrent(sys->gl);
int ret = vlc_gl_MakeCurrent(sys->gl);
vout_display_opengl_Delete(glsys->vgl);
vlc_gl_ReleaseCurrent(sys->gl);
if (ret == VLC_SUCCESS)
vlc_gl_ReleaseCurrent(sys->gl);
}
vlc_object_release(sys->gl);
}
......
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