diff --git a/ChangeLog b/ChangeLog index a44fc2cb0..1f88ef8f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-05-12 Matthew Allum + + * clutter/x11/clutter-x11-texture-pixmap.c: + * configure.ac: + * tests/Makefile.am: + Remove the XComposite dep from Clutter itself, just use + in test-pixmap (if available) + 2008-05-12 Emmanuele Bassi Rework the stage wrapper/implementation relation: remove diff --git a/clutter/x11/clutter-x11-texture-pixmap.c b/clutter/x11/clutter-x11-texture-pixmap.c index 0101f8140..1259492ee 100644 --- a/clutter/x11/clutter-x11-texture-pixmap.c +++ b/clutter/x11/clutter-x11-texture-pixmap.c @@ -49,7 +49,6 @@ /* FIXME: Check exts exist in autogen */ #include -#include #include #include @@ -109,7 +108,6 @@ G_DEFINE_TYPE (ClutterX11TexturePixmap, \ static gboolean check_extensions (ClutterX11TexturePixmap *texture) { - int event_base, error_base; int damage_error; ClutterX11TexturePixmapPrivate *priv; Display *dpy; @@ -121,12 +119,6 @@ check_extensions (ClutterX11TexturePixmap *texture) dpy = clutter_x11_get_default_display(); - if (!XCompositeQueryExtension (dpy, &event_base, &error_base)) - { - g_warning ("No composite extension\n"); - return FALSE; - } - if (!XDamageQueryExtension (dpy, &_damage_event_base, &damage_error)) { diff --git a/configure.ac b/configure.ac index a19be42ba..1052eb6b5 100644 --- a/configure.ac +++ b/configure.ac @@ -156,12 +156,10 @@ if test x$have_xdamage = xyes; then X11_LIBS="$X11_LIBS -lXdamage" fi -# FIXME: Composite 0.3/0.4 likely needed when window redirection complete. -# though may not be needed at all -PKG_CHECK_MODULES(XCOMPOSITE, xcomposite, [have_xcomposite=yes], [have_xcomposite=no]) +# Composite 0.4 just needed for tests +PKG_CHECK_MODULES(XCOMPOSITE, xcomposite >= 0.4, [have_xcomposite=yes], [have_xcomposite=no]) if test x$have_xcomposite = xyes; then AC_DEFINE(HAVE_XCOMPOSITE, 1, [Have the XCOMPOSITE X extension]) - X11_LIBS="$X11_LIBS -lXcomposite" fi x11_tests=no @@ -169,11 +167,14 @@ x11_tests=no # Currently require all extentions, may not for actual release. if test "x$clutterbackend" = "xglx" || test "x$clutterbackend" = "xeglx" then - if test "x$have_xdamage" = "xno" || test "x$have_xfixes" = "xno" || test "x$have_xcomposite" = "xno" + if test "x$have_xdamage" = "xno" || test "x$have_xfixes" = "xno" then AC_MSG_ERROR([[Required backend X11 Libraries not found.]]) fi - x11_tests=yes + if test "x$have_xcomposite" = "xyes" + then + x11_tests=yes + fi fi AM_CONDITIONAL(X11_TESTS, test "x$x11_tests" != "xno") @@ -219,7 +220,7 @@ case $glesversion in ;; 2*) clutter_gl_header="GLES2/gl2.h" - CLUTTER_COGL="gl" + CLUTTER_COGL="gles" AC_DEFINE([HAVE_COGL_GLES2], 1, [Have GL/ES for rendering]) AC_CHECK_HEADERS([EGL/egl.h],, diff --git a/tests/Makefile.am b/tests/Makefile.am index c93b7cae6..74986bb94 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -53,6 +53,7 @@ test_fbo_SOURCES = test-fbo.c test_opacity_SOURCES = test-opacity.c test_multistage_SOURCES = test-multistage.c test_pixmap_SOURCES = test-pixmap.c +test_pixmap_LDFLAGS = -lXcomposite test_cogl_primitives_SOURCES = test-cogl-primitives.c test_cogl_tex_tile_SOURCES = test-cogl-tex-tile.c test_cogl_tex_convert_SOURCES = test-cogl-tex-convert.c