]> git.sesse.net Git - vlc/commitdiff
OpenGL: enable SPU blending
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 28 Oct 2012 16:32:15 +0000 (18:32 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 28 Oct 2012 16:32:57 +0000 (18:32 +0200)
modules/video_output/gl.c

index a7acdd3df14a3c5ebe0d9476fe9ab1b1a2d4761b..a396bae666579063021fc98c5b7e1fc62deb02c8 100644 (file)
@@ -138,13 +138,15 @@ static int Open (vlc_object_t *obj)
         goto error;
 
     /* Initialize video display */
-    sys->vgl = vout_display_opengl_New (&vd->fmt, NULL, sys->gl);
+    const vlc_fourcc_t *spu_chromas;
+    sys->vgl = vout_display_opengl_New (&vd->fmt, &spu_chromas, sys->gl);
     if (!sys->vgl)
         goto error;
 
     vd->sys = sys;
     vd->info.has_pictures_invalid = false;
     vd->info.has_event_thread = false;
+    vd->info.subpicture_chromas = spu_chromas;
     vd->pool = Pool;
     vd->prepare = PictureRender;
     vd->display = PictureDisplay;