[clutter/wip/apocalypses/apocalypse-3: 32/35] paint-node: Make texture template pipeline clamp to edge
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/apocalypses/apocalypse-3: 32/35] paint-node: Make texture template pipeline clamp to edge
- Date: Thu, 15 Mar 2012 18:07:22 +0000 (UTC)
commit 8e968093eb8b0434a3b6279a309a0976d92c7b5a
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Mon Mar 12 15:52:55 2012 +0000
paint-node: Make texture template pipeline clamp to edge
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 | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-paint-nodes.c b/clutter/clutter-paint-nodes.c
index 3495ae7..37663c3 100644
--- a/clutter/clutter-paint-nodes.c
+++ b/clutter/clutter-paint-nodes.c
@@ -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);
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]