[vlc-commits] projectm: ensure that the GL context is attached
    Thomas Guillem 
    git at videolan.org
       
    Tue Apr 25 13:55:02 CEST 2017
    
    
  
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Apr 25 13:51:53 2017 +0200| [384c3ce1032061b9962d272995d0a19ef329e3db] | committer: Thomas Guillem
projectm: ensure that the GL context is attached
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=384c3ce1032061b9962d272995d0a19ef329e3db
---
 modules/visualization/projectm.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/visualization/projectm.cpp b/modules/visualization/projectm.cpp
index e1fc564e66..aee1ffb814 100644
--- a/modules/visualization/projectm.cpp
+++ b/modules/visualization/projectm.cpp
@@ -280,7 +280,11 @@ static void *Thread( void *p_data )
     projectM::Settings settings;
 #endif
 
-    vlc_gl_MakeCurrent( gl );
+    if( vlc_gl_MakeCurrent( gl ) != VLC_SUCCESS )
+    {
+        msg_Err( p_filter, "Can't attach gl context" );
+        return NULL;
+    }
 
     /* Work-around the projectM locale bug */
     loc = newlocale (LC_NUMERIC_MASK, "C", NULL);
    
    
More information about the vlc-commits
mailing list