Commit 631a6750 authored by Thomas Guillem's avatar Thomas Guillem

vout: ios: call ReleaseCurrent only if needed when closing

(cherry picked from commit 6023de82)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent f563f5e6
......@@ -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