diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2011-07-24 17:54:16 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2011-07-29 11:44:55 +0100 |
commit | 9ca33088922c555a1daddadc7317669ab8b55846 (patch) | |
tree | 91c1e3a27a757eb832937341789f47fba367953f | |
parent | 912d46817edabe8419a842e6f3d4ecc9bf09eead (diff) | |
download | cogl-9ca33088922c555a1daddadc7317669ab8b55846.tar.gz |
egl: Guard the feature discovery of eglCreateImage()
EGLImageKHR might not be defined, the rest of the code seems to guard it
with #ifdef EGL_KHR_image_base.
https://bugzilla.gnome.org/show_bug.cgi?id=655216
-rw-r--r-- | cogl/winsys/cogl-winsys-egl-feature-functions.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cogl/winsys/cogl-winsys-egl-feature-functions.h b/cogl/winsys/cogl-winsys-egl-feature-functions.h index 0bc50b6e..3d347b9d 100644 --- a/cogl/winsys/cogl-winsys-egl-feature-functions.h +++ b/cogl/winsys/cogl-winsys-egl-feature-functions.h @@ -54,6 +54,7 @@ COGL_WINSYS_FEATURE_END () /* XXX: These macros can't handle falling back to looking for * EGL_KHR_image if EGL_KHR_image_base and EGL_KHR_image_pixmap aren't * found... */ +#ifdef EGL_KHR_image_base COGL_WINSYS_FEATURE_BEGIN (image_base, "KHR\0", "image_base\0", @@ -68,6 +69,7 @@ COGL_WINSYS_FEATURE_FUNCTION (EGLBoolean, eglDestroyImage, (EGLDisplay dpy, EGLImageKHR image)) COGL_WINSYS_FEATURE_END () +#endif COGL_WINSYS_FEATURE_BEGIN (image_pixmap, "KHR\0", "image_pixmap\0", |