summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2011-05-25 01:57:20 +0100
committerRobert Bragg <robert@linux.intel.com>2011-05-27 12:24:38 +0100
commit40b9ad6b70c9e8f1af2ab14587d2929a4338684e (patch)
tree0cfaef765c626acae753f1212386f2a9ffedcaeb
parent4155b97bc6dd9ad2eca682bfa2850827d90234e9 (diff)
downloadcogl-40b9ad6b70c9e8f1af2ab14587d2929a4338684e.tar.gz
egl: fix some #ifdef guards
In the winsys vtable .xlib_get_visual_info and .onscreen_x11_get_window_xid should be guarded by the COGL_HAS_EGL_PLATFORM_POWERVR_X11_SUPPORT because they need to be there if cogl is configured with --enable-xlib-egl-platform but not if just configured with --enable-xlib.
-rw-r--r--cogl/winsys/cogl-winsys-egl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cogl/winsys/cogl-winsys-egl.c b/cogl/winsys/cogl-winsys-egl.c
index 86a560b9..6f51992e 100644
--- a/cogl/winsys/cogl-winsys-egl.c
+++ b/cogl/winsys/cogl-winsys-egl.c
@@ -1653,7 +1653,7 @@ static CoglWinsysVtable _cogl_winsys_vtable =
.context_deinit = _cogl_winsys_context_deinit,
.context_egl_get_egl_display =
_cogl_winsys_context_egl_get_egl_display,
-#ifdef COGL_HAS_XLIB_SUPPORT
+#ifdef COGL_HAS_EGL_PLATFORM_POWERVR_X11_SUPPORT
.xlib_get_visual_info = _cogl_winsys_xlib_get_visual_info,
#endif
.onscreen_init = _cogl_winsys_onscreen_init,
@@ -1666,7 +1666,7 @@ static CoglWinsysVtable _cogl_winsys_vtable =
#endif
.onscreen_update_swap_throttled =
_cogl_winsys_onscreen_update_swap_throttled,
-#ifdef COGL_HAS_XLIB_SUPPORT
+#ifdef COGL_HAS_EGL_PLATFORM_POWERVR_X11_SUPPORT
.onscreen_x11_get_window_xid =
_cogl_winsys_onscreen_x11_get_window_xid,
#endif