]> git.sesse.net Git - vlc/commitdiff
opengl: Fix a typo that lead to a crash.
authorPierre d'Herbemont <pdherbemont@free.fr>
Tue, 8 Dec 2009 02:18:30 +0000 (03:18 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Tue, 8 Dec 2009 02:20:48 +0000 (03:20 +0100)
Note, the opengl output is still broken on Mac OS X, in the way that no picture are rendered.

modules/video_output/opengl.h

index 444a85de4ed61882c15d156d5dc1d56e764dd25d..df703794049b0511131c50e61a9572b9ec1e64d0 100644 (file)
@@ -270,7 +270,7 @@ static int PictureLock(picture_t *picture)
     if (!picture->p_sys)
         return VLC_SUCCESS;
 
-    vout_display_opengl_t *vgl = !picture->p_sys->vgl;
+    vout_display_opengl_t *vgl = picture->p_sys->vgl;
     if (!vout_opengl_Lock(vgl->gl)) {
 
         glBindTexture(VLCGL_TARGET, picture->p_sys->texture);