vlc | branch: master | Thomas Guillem <[email protected]> | Tue Apr 25 13:51:47 2017 +0200| [09afe262d28042de5c9f2af2848c96126fef1920] | committer: Thomas Guillem
glspectrum: ensure that the GL context is attached > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=09afe262d28042de5c9f2af2848c96126fef1920 --- modules/visualization/glspectrum.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/visualization/glspectrum.c b/modules/visualization/glspectrum.c index 90e9637648..06f8d1bdf7 100644 --- a/modules/visualization/glspectrum.c +++ b/modules/visualization/glspectrum.c @@ -349,7 +349,11 @@ static void *Thread( void *p_data ) filter_sys_t *p_sys = p_filter->p_sys; 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(); vlc_gl_ReleaseCurrent(gl); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
