mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
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:
parent
6c8f6afdc4
commit
ce7573e2b7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user