diff options
author | Matthew Waters <matthew@centricular.com> | 2016-05-03 19:58:00 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2016-05-03 20:02:34 +1000 |
commit | 344e7db975951c85d4523d77fc8af837e65bfa4e (patch) | |
tree | 64ce1bc4bd0cf845e217b75dd3a3e334556506af /gst-libs | |
parent | 8c03f448c3cead4f6dbcaa5d6b1049b0f960cd2b (diff) | |
download | gstreamer-plugins-bad-344e7db975951c85d4523d77fc8af837e65bfa4e.tar.gz |
gl: fix gles3 header usage for older platforms
Some platforms provide an old version of GLES2/gl2.h and GLES2/gl2ext.h that
will fail when including GLES3/gl3.h due to missing typedef's.
Seen on the RPi.
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/gl/gstglapi.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst-libs/gst/gl/gstglapi.h b/gst-libs/gst/gl/gstglapi.h index 8c9266629..93b60b792 100644 --- a/gst-libs/gst/gl/gstglapi.h +++ b/gst-libs/gst/gl/gstglapi.h @@ -39,11 +39,12 @@ # include <OpenGLES/ES2/gl.h> # include <OpenGLES/ES2/glext.h> # else -# include <GLES2/gl2.h> -# include <GLES2/gl2ext.h> # if GST_GL_HAVE_GLES3 # include <GLES3/gl3.h> # include <GLES3/gl3ext.h> +# else +# include <GLES2/gl2.h> +# include <GLES2/gl2ext.h> # endif # endif # if !GST_GL_HAVE_OPENGL |