[vlc-commits] vsxu: make GL context current

Rémi Denis-Courmont git at videolan.org
Fri Mar 7 20:40:49 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Mar  7 21:38:33 2014 +0200| [a368cd48347312899f7f2575375aa0efde812ba2] | committer: Rémi Denis-Courmont

vsxu: make GL context current

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a368cd48347312899f7f2575375aa0efde812ba2
---

 modules/visualization/vsxu.cpp |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/visualization/vsxu.cpp b/modules/visualization/vsxu.cpp
index 9341b54..ca1cd3d 100644
--- a/modules/visualization/vsxu.cpp
+++ b/modules/visualization/vsxu.cpp
@@ -315,6 +315,7 @@ static void *Thread( void *p_data )
 
     // tell main thread we are ready
     vlc_sem_post( &p_sys->ready );
+    vlc_gl_MakeCurrent( gl );
 
     while ( run )
     {
@@ -392,6 +393,8 @@ static void *Thread( void *p_data )
     // delete the intro (if ever allocated)
     if (intro) delete intro;
 
+    vlc_gl_ReleaseCurrent( gl );
+
     var_DelCallback( p_vout, "fullscreen", VoutCallback, p_vd );
 
     // clean out vlc opengl stuff



More information about the vlc-commits mailing list