Commit 09afe262 authored by Thomas Guillem's avatar Thomas Guillem

glspectrum: ensure that the GL context is attached

parent da40c68c
...@@ -349,7 +349,11 @@ static void *Thread( void *p_data ) ...@@ -349,7 +349,11 @@ static void *Thread( void *p_data )
filter_sys_t *p_sys = p_filter->p_sys; filter_sys_t *p_sys = p_filter->p_sys;
vlc_gl_t *gl = p_sys->gl; vlc_gl_t *gl = p_sys->gl;
vlc_gl_MakeCurrent(gl); if (vlc_gl_MakeCurrent(gl) != VLC_SUCCESS)
msg_Err(p_filter, "Can't attach gl context");
return NULL;
initOpenGLScene(); initOpenGLScene();
vlc_gl_ReleaseCurrent(gl); vlc_gl_ReleaseCurrent(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