From 770bcd5b4042818008e3fbbfab8e11722681a5fa Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 20 Jan 2011 12:59:56 +0000 Subject: [PATCH] test-pixmap: Remove the GLX code The ClutterGLXTexturePixmap actor is just a wrapper around ClutterX11TexturePixmap, since the relevant texture-from-pixmap code has been moved down to Cogl. --- tests/interactive/test-pixmap.c | 41 --------------------------------- 1 file changed, 41 deletions(-) diff --git a/tests/interactive/test-pixmap.c b/tests/interactive/test-pixmap.c index 5a6d1b7a3..20585809f 100644 --- a/tests/interactive/test-pixmap.c +++ b/tests/interactive/test-pixmap.c @@ -14,11 +14,6 @@ # include # include -# ifdef CLUTTER_WINDOWING_GLX -# include -# include -# endif - # include # include @@ -28,7 +23,6 @@ # include static gboolean disable_x11 = FALSE; -static gboolean disable_glx = FALSE; static gboolean disable_animation = FALSE; static GOptionEntry g_options[] = @@ -39,12 +33,6 @@ static GOptionEntry g_options[] = &disable_x11, "Disable redirection through X11 pixmap", NULL }, - { "disable-glx", - 0, 0, - G_OPTION_ARG_NONE, - &disable_glx, - "Disable redirection through GLX pixmap", - NULL }, { "disable-animation", 0, 0, G_OPTION_ARG_NONE, @@ -324,35 +312,6 @@ test_pixmap_main (int argc, char **argv) clutter_behaviour_apply (depth_behavior, group); } -#ifdef CLUTTER_WINDOWING_GLX - /* a window with glx */ - if (!disable_glx) - { - group = clutter_group_new (); - clutter_container_add_actor (CLUTTER_CONTAINER (stage), group); - label = clutter_text_new_with_text ("fixed", - "ClutterGLXTexture (Window)"); - clutter_container_add_actor (CLUTTER_CONTAINER (group), label); - tex = clutter_glx_texture_pixmap_new_with_window (win_remote); - clutter_container_add_actor (CLUTTER_CONTAINER (group), tex); - clutter_actor_set_position (tex, 0, 20); - clutter_x11_texture_pixmap_set_automatic (CLUTTER_X11_TEXTURE_PIXMAP (tex), - TRUE); - clutter_texture_set_filter_quality (CLUTTER_TEXTURE (tex), - CLUTTER_TEXTURE_QUALITY_HIGH); - clutter_actor_set_position (group, - clutter_actor_get_width (stage) - - clutter_actor_get_width (tex), - 0); - if (!disable_animation) - clutter_behaviour_apply (depth_behavior, group); - - if (!clutter_glx_texture_pixmap_using_extension ( - CLUTTER_GLX_TEXTURE_PIXMAP (tex))) - g_print ("NOTE: Using fallback path, not GLX TFP!\n"); - } -#endif /* CLUTTER_WINDOWING_GLX */ - if (group) row_height = clutter_actor_get_height (group); else