build: Check for GLES3/gl3ext.h existence
authorJens Georg <mail@jensge.org>
Thu, 11 May 2017 08:29:58 +0000 (10:29 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:27 +0000 (19:32 +0000)
Some OpenGL drivers do not ship this but use GLES2/gl2ext.h instead.
This is also in line with Khronos's recommendations

https://bugzilla.gnome.org/show_bug.cgi?id=781885

gst-libs/gst/gl/gstglapi.h

index 3ce1e03..4196e83 100644 (file)
 # else
 #  if GST_GL_HAVE_GLES3
 #   include <GLES3/gl3.h>
-#   include <GLES3/gl3ext.h>
+#   if GST_GL_HAVE_GLES3EXT3_H
+#    include <GLES3/gl3ext.h>
+#   endif
+#   include <GLES2/gl2ext.h>
 #  else
 #   include <GLES2/gl2.h>
 #   include <GLES2/gl2ext.h>