gl/overlaycompositor: don't force unpremultiplied alpha
authorMatthew Waters <matthew@centricular.com>
Thu, 4 Oct 2018 13:23:03 +0000 (23:23 +1000)
committerMatthew Waters <matthew@centricular.com>
Thu, 4 Oct 2018 13:24:15 +0000 (23:24 +1000)
Remove testing code from 23159365618409011745b554b4ad371700961121

gst-libs/gst/gl/gstgloverlaycompositor.c

index 21bbc1e..dda34f8 100644 (file)
@@ -354,7 +354,6 @@ gst_gl_composition_overlay_upload (GstGLCompositionOverlay * overlay,
 
   flags = gst_video_overlay_rectangle_get_flags (overlay->rectangle);
 
-  flags = 0;
   if (flags & GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA) {
     alpha_flags = GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA;
   } else if (!overlay->context->gl_vtable->BlendFuncSeparate) {
@@ -717,7 +716,6 @@ gst_gl_overlay_compositor_draw_overlays (GstGLOverlayCompositor * compositor)
       GstVideoOverlayFormatFlags flags;
 
       flags = gst_video_overlay_rectangle_get_flags (overlay->rectangle);
-      flags = 0;
 
       if (flags & GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA
           || !gl->BlendFuncSeparate) {