vout_display_opengl_New seems to require a valid context, therefore we
need to vlc_gl_MakeCurrent before calling it and release it again
afterwards.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
const vlc_fourcc_t *subpicture_chromas;
+ vlc_gl_MakeCurrent(sys->gl);
sys->vgl = vout_display_opengl_New (&vd->fmt, &subpicture_chromas, sys->gl,
&vd->cfg->viewpoint);
+ vlc_gl_ReleaseCurrent(sys->gl);
if (!sys->vgl) {
msg_Err(vd, "Error while initializing opengl display.");
goto error;