mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
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:
parent
912d46817e
commit
9ca3308892
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user