glvideoconvert: RG/LA is available in OpenGL ES 3, so let that through
authorOlivier Crête <olivier.crete@collabora.com>
Thu, 30 Jun 2016 03:55:18 +0000 (23:55 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Thu, 30 Jun 2016 03:55:18 +0000 (23:55 -0400)
gst-libs/gst/gl/gstglcolorconvert.c

index adc54fc..ebddb2d 100644 (file)
@@ -1969,7 +1969,7 @@ _init_convert (GstGLColorConvert * convert)
   }
 
   /* Requires reading from a RG/LA framebuffer... */
-  if (USING_GLES2 (convert->context) &&
+  if (USING_GLES2 (convert->context) && !USING_GLES3 (convert->context) &&
       (GST_VIDEO_INFO_FORMAT (&convert->out_info) == GST_VIDEO_FORMAT_YUY2 ||
           GST_VIDEO_INFO_FORMAT (&convert->out_info) ==
           GST_VIDEO_FORMAT_UYVY)) {