gl/api: use public rather than private define
authorMatthew Waters <matthew@centricular.com>
Wed, 9 Sep 2015 13:53:57 +0000 (23:53 +1000)
committerMatthew Waters <matthew@centricular.com>
Wed, 9 Sep 2015 14:33:19 +0000 (00:33 +1000)
HAVE_IOS is only defined for the build of this module so
attempting to use gstgl in iOS would result in incorrect GL
includes.
Use GST_GL_HAVE_PLATFORM_EAGL instead for choosing the iOS GL
header.

gst-libs/gst/gl/gstglapi.h

index 5ef1c65..dd44b45 100644 (file)
@@ -28,7 +28,7 @@
 #ifndef GL_GLEXT_PROTOTYPES
 #define GL_GLEXT_PROTOTYPES 1
 #endif
-# ifdef HAVE_IOS
+# if GST_GL_HAVE_PLATFORM_EAGL
 #  include <OpenGLES/ES2/gl.h>
 #  include <OpenGLES/ES2/glext.h>
 # else