mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
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:
parent
cfb0d7e9f3
commit
ad49a39e5b
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue