paint-node: Make texture template pipeline clamp to edge
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 12 Mar 2012 15:52:55 +0000 (15:52 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 16 Mar 2012 12:33:39 +0000 (12:33 +0000)
It's safer, and consistent with the rest of Clutter, to make sure that
the template pipeline we use for ClutterTextureNode has its wrap mode
set to clamp-to-edge.

clutter/clutter-paint-nodes.c

index 3495ae7..37663c3 100644 (file)
@@ -79,6 +79,8 @@ _clutter_paint_node_init_types (void)
   cogl_pipeline_set_layer_null_texture (default_texture_pipeline, 0,
                                         COGL_TEXTURE_TYPE_2D);
   cogl_pipeline_set_color (default_texture_pipeline, &cogl_color);
+  cogl_pipeline_set_layer_wrap_mode (default_texture_pipeline, 0,
+                                     COGL_PIPELINE_WRAP_MODE_CLAMP_TO_EDGE);
 }
 
 /*