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
This commit is contained in:
Damien Lespiau 2011-07-24 17:54:16 +01:00
parent 912d46817e
commit 9ca3308892

View File

@ -54,6 +54,7 @@ COGL_WINSYS_FEATURE_END ()
/* XXX: These macros can't handle falling back to looking for /* 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 * EGL_KHR_image if EGL_KHR_image_base and EGL_KHR_image_pixmap aren't
* found... */ * found... */
#ifdef EGL_KHR_image_base
COGL_WINSYS_FEATURE_BEGIN (image_base, COGL_WINSYS_FEATURE_BEGIN (image_base,
"KHR\0", "KHR\0",
"image_base\0", "image_base\0",
@ -68,6 +69,7 @@ COGL_WINSYS_FEATURE_FUNCTION (EGLBoolean, eglDestroyImage,
(EGLDisplay dpy, (EGLDisplay dpy,
EGLImageKHR image)) EGLImageKHR image))
COGL_WINSYS_FEATURE_END () COGL_WINSYS_FEATURE_END ()
#endif
COGL_WINSYS_FEATURE_BEGIN (image_pixmap, COGL_WINSYS_FEATURE_BEGIN (image_pixmap,
"KHR\0", "KHR\0",
"image_pixmap\0", "image_pixmap\0",