1
0
Fork 0

cogl/egl: Fix non-Wayland build

Use #ifdef instead of #if, otherwise it won't compile when Wayland is
not available.

https://bugzilla.gnome.org/show_bug.cgi?id=770647
This commit is contained in:
Jonas Ådahl 2016-09-02 14:20:40 +08:00
parent 6c8f6afdc4
commit ce7573e2b7

View file

@ -1029,7 +1029,7 @@ _cogl_egl_create_image (CoglContext *ctx,
egl_ctx = EGL_NO_CONTEXT;
else
#endif
#if COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
#ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
/* The WL_bind_wayland_display spec states that EGL_NO_CONTEXT is to be used
* in conjunction with the EGL_WAYLAND_BUFFER_WL target */
if (target == EGL_WAYLAND_BUFFER_WL)