[cogl] egl: Guard the feature discovery of eglCreateImage()



commit 9ca33088922c555a1daddadc7317669ab8b55846
Author: Damien Lespiau <damien lespiau intel com>
Date:   Sun Jul 24 17:54:16 2011 +0100

    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

 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 0bc50b6..3d347b9 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",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]