Commit 8c69c05f authored by Thomas Guillem's avatar Thomas Guillem

gl: don't call ReleaseCurrent in case of failure

parent 32b642ca
......@@ -206,8 +206,10 @@ static void PictureRender (vout_display_t *vd, picture_t *pic, subpicture_t *sub
vout_display_sys_t *sys = vd->sys;
if (vlc_gl_MakeCurrent (sys->gl) == VLC_SUCCESS)
{
vout_display_opengl_Prepare (sys->vgl, pic, subpicture);
vlc_gl_ReleaseCurrent (sys->gl);
vlc_gl_ReleaseCurrent (sys->gl);
}
}
static void PictureDisplay (vout_display_t *vd, picture_t *pic, subpicture_t *subpicture)
......
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