[cairo] [PATCH] openvg: build break without GL backend

Makoto Kato m_kato at ga2.so-net.ne.jp
Tue Mar 22 09:29:23 PDT 2011


Although OpenVG backend requires EGL or GLX, these required GL backend.
---
 src/cairo-egl-context.c |    3 +++
 src/cairo-glx-context.c |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/cairo-egl-context.c b/src/cairo-egl-context.c
index ec23852..bed457b 100644
--- a/src/cairo-egl-context.c
+++ b/src/cairo-egl-context.c
@@ -38,6 +38,8 @@
 
 #include "cairoint.h"
 
+#if CAIRO_HAS_GL_SURFACE
+
 #include "cairo-gl-private.h"
 
 #include "cairo-error-private.h"
@@ -228,3 +230,4 @@ cairo_gl_surface_create_for_egl (cairo_device_t	*device,
 
     return &surface->base.base;
 }
+#endif /* CAIRO_HAS_GL_SURFACE */
diff --git a/src/cairo-glx-context.c b/src/cairo-glx-context.c
index f89fa32..003ded1 100644
--- a/src/cairo-glx-context.c
+++ b/src/cairo-glx-context.c
@@ -38,6 +38,8 @@
 
 #include "cairoint.h"
 
+#if CAIRO_HAS_GL_SURFACE
+
 #include "cairo-gl-private.h"
 
 #include "cairo-error-private.h"
@@ -275,3 +277,4 @@ cairo_gl_surface_create_for_window (cairo_device_t	*device,
 
     return &surface->base.base;
 }
+#endif /* CAIRO_HAS_GL_SURFACE */
-- 
1.7.1



More information about the cairo mailing list