From 72e1ff05a867fe55a8e66b5f550aca0265916b4c Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Sat, 3 Jul 2010 19:05:04 +0100 Subject: [PATCH] pango-render: set CLAMP_TO_EDGE wrap mode on glyph_material The pango renderer was causing lots of override materials to be allocated because the vertex_buffer API converts AUTOMATIC mode into REPEAT for backwards compatibility. By explicitly setting the wrap mode to CLAMP_TO_EDGE when creating the glyph_material then the vertex_buffer API will leave it untouched. --- pango/cogl-pango-render.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pango/cogl-pango-render.c b/pango/cogl-pango-render.c index 6e518c1b7..d39145e74 100644 --- a/pango/cogl-pango-render.c +++ b/pango/cogl-pango-render.c @@ -139,6 +139,8 @@ cogl_pango_renderer_init (CoglPangoRenderer *priv) cogl_material_set_layer_combine (priv->glyph_material, 0, /* layer */ "RGBA = MODULATE (PREVIOUS, TEXTURE[A])", NULL); + cogl_material_set_layer_wrap_mode (priv->glyph_material, 0, + COGL_MATERIAL_WRAP_MODE_CLAMP_TO_EDGE); priv->solid_material = cogl_material_new ();