[mutter] cogl/egl: Fix non-Wayland build



commit ce7573e2b75789a701cbc75c17a118e067fda3d6
Author: Jonas Ådahl <jadahl gmail com>
Date:   Fri Sep 2 14:20:40 2016 +0800

    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

 cogl/cogl/winsys/cogl-winsys-egl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl/winsys/cogl-winsys-egl.c b/cogl/cogl/winsys/cogl-winsys-egl.c
index 36122f2..dbf14f6 100644
--- a/cogl/cogl/winsys/cogl-winsys-egl.c
+++ b/cogl/cogl/winsys/cogl-winsys-egl.c
@@ -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)


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