diff options
author | Matthew Waters <matthew@centricular.com> | 2014-11-27 21:05:45 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2014-11-28 09:14:26 +1100 |
commit | 3c1e77eb3126a3afd297f99b64715fc89683d773 (patch) | |
tree | 01c56cd3a740ec265cb9903207de30ceb2bba8eb /ext/gl/gstgloverlay.c | |
parent | 6bd1150ca889c17342520b3bbd8e729fb843a1a5 (diff) |
gldisplay: implement runtime GL api filtering
Needed so that the pipeline/application can limit the choice of GL api
to what it supports
Diffstat (limited to 'ext/gl/gstgloverlay.c')
-rw-r--r-- | ext/gl/gstgloverlay.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/gl/gstgloverlay.c b/ext/gl/gstgloverlay.c index 60cce46b5..93bd9c149 100644 --- a/ext/gl/gstgloverlay.c +++ b/ext/gl/gstgloverlay.c @@ -244,6 +244,9 @@ gst_gl_overlay_class_init (GstGLOverlayClass * klass) "Overlay GL video texture with a JPEG/PNG image", "Filippo Argiolas <filippo.argiolas@gmail.com>, " "Matthew Waters <matthew@centricular.com>"); + + GST_GL_FILTER_CLASS (klass)->supported_gl_api = + GST_GL_API_OPENGL | GST_GL_API_GLES2 | GST_GL_API_OPENGL3; } static void |