Revert changes to test-cogl-primitives.c from 272e227109
authorNeil Roberts <neil@linux.intel.com>
Mon, 9 Nov 2009 12:12:27 +0000 (12:12 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 9 Nov 2009 18:19:42 +0000 (18:19 +0000)
These changes caused the test to try to load redhand.png but this no
longer works since the TESTS_DATADIR changes in 0b4899ef23. The only
use of the hand is commented out anyway so it looks like the changes
were intended for temporary debugging.

tests/interactive/test-cogl-primitives.c

index 1034077..fb5adb3 100644 (file)
@@ -6,7 +6,6 @@
 #include <cogl/cogl.h>
 
 typedef void (*PaintFunc) (void);
-CoglHandle hand;
 
 static void
 test_paint_line ()
@@ -95,7 +94,6 @@ paint_cb (ClutterActor *self, ClutterTimeline *tl)
 
   cogl_translate (150, 0, 0);
   cogl_set_source_color4ub (200, 0, 0, 255);
-  //cogl_set_source_texture (hand);
   cogl_path_fill ();
 
   cogl_pop_matrix();
@@ -107,21 +105,9 @@ test_cogl_primitives_main (int argc, char *argv[])
   ClutterActor *stage;
   ClutterActor *coglbox;
   ClutterTimeline *tl;
-  GError *error = NULL;
 
   clutter_init(&argc, &argv);
 
-  hand =cogl_texture_new_from_file ("redhand.png",
-                              COGL_TEXTURE_NONE,
-                              COGL_PIXEL_FORMAT_ANY,
-                              &error);
-  if (error)
-    {
-      g_critical ("Failed to load redhand.png: %s", error->message);
-      g_error_free (error);
-      return 1;
-    }
-
   tl = clutter_timeline_new (G_N_ELEMENTS (paint_func) * 1000);
   clutter_timeline_set_loop (tl, TRUE);
   clutter_timeline_start (tl);