From 8b0b68c4e89eadb05a60cfa3f38f3809da32ec49 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 26 Oct 2015 18:26:18 +1100 Subject: [PATCH] glcolorconvert: allow outputting multiple textures for gles3 contexts the USING_GLES2 includes all GLES3 contexts as well which does support drawing to multiple buffers. Instead make or decision solely based on whether glDrawBuffers is available or not. --- gst-libs/gst/gl/gstglcolorconvert.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c index b9e04a190e..201d1a8a76 100644 --- a/gst-libs/gst/gl/gstglcolorconvert.c +++ b/gst-libs/gst/gl/gstglcolorconvert.c @@ -1356,9 +1356,8 @@ _init_convert (GstGLColorConvert * convert) if (!info->frag_prog || info->in_n_textures == 0 || info->out_n_textures == 0) goto unhandled_format; - /* multiple draw targets not supported on GLES2...yet */ - if (info->out_n_textures > 1 && (!gl->DrawBuffers || - USING_GLES2 (convert->context))) { + /* multiple draw targets not supported on GLES2... */ + if (info->out_n_textures > 1 && !gl->DrawBuffers) { g_free (info->frag_prog); GST_ERROR ("Conversion requires output to multiple draw buffers"); goto incompatible_api;