From c7da2adf7fe2b1815901e69131b79de35feea6f8 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 16 Mar 2016 22:16:34 +1100 Subject: [PATCH] glstereo{mix,split}: allow running on GLES 2/3 It's mostly supported for GLES 2.x, fully supported on GLES 3.x --- ext/gl/gstglstereomix.c | 3 ++- ext/gl/gstglstereosplit.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/gl/gstglstereomix.c b/ext/gl/gstglstereomix.c index ed604b2..989d7f6 100644 --- a/ext/gl/gstglstereomix.c +++ b/ext/gl/gstglstereomix.c @@ -167,7 +167,8 @@ gst_gl_stereo_mix_class_init (GstGLStereoMixClass * klass) gst_gl_stereo_mix_get_output_buffer; videoaggregator_class->find_best_format = gst_gl_stereo_mix_find_best_format; - base_mix_class->supported_gl_api = GST_GL_API_OPENGL | GST_GL_API_OPENGL3; + base_mix_class->supported_gl_api = + GST_GL_API_GLES2 | GST_GL_API_OPENGL | GST_GL_API_OPENGL3; } static void diff --git a/ext/gl/gstglstereosplit.c b/ext/gl/gstglstereosplit.c index fc93b1a..eba713c 100644 --- a/ext/gl/gstglstereosplit.c +++ b/ext/gl/gstglstereosplit.c @@ -45,7 +45,7 @@ #define GST_CAT_DEFAULT gst_gl_stereosplit_debug GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT); -#define SUPPORTED_GL_APIS GST_GL_API_OPENGL | GST_GL_API_OPENGL3 +#define SUPPORTED_GL_APIS GST_GL_API_GLES2 | GST_GL_API_OPENGL | GST_GL_API_OPENGL3 #define DEBUG_INIT \ GST_DEBUG_CATEGORY_INIT (gst_gl_stereosplit_debug, "glstereosplit", 0, "glstereosplit element"); -- 2.7.4