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.
This commit is contained in:
Matthew Waters 2015-10-26 18:26:18 +11:00
parent 09976e021b
commit 8b0b68c4e8

View file

@ -1356,9 +1356,8 @@ _init_convert (GstGLColorConvert * convert)
if (!info->frag_prog || info->in_n_textures == 0 || info->out_n_textures == 0) if (!info->frag_prog || info->in_n_textures == 0 || info->out_n_textures == 0)
goto unhandled_format; goto unhandled_format;
/* multiple draw targets not supported on GLES2...yet */ /* multiple draw targets not supported on GLES2... */
if (info->out_n_textures > 1 && (!gl->DrawBuffers || if (info->out_n_textures > 1 && !gl->DrawBuffers) {
USING_GLES2 (convert->context))) {
g_free (info->frag_prog); g_free (info->frag_prog);
GST_ERROR ("Conversion requires output to multiple draw buffers"); GST_ERROR ("Conversion requires output to multiple draw buffers");
goto incompatible_api; goto incompatible_api;