From f8e6727e74c80b80bba3ccb9201e1afd23349c35 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 27 Oct 2009 13:18:51 +0000 Subject: [PATCH] [cogl_polygon] Enable COGL_ENABLE_BLEND when use_color is set Otherwise you can't use the alpha channel of the vertex colors unless the material has a texture with alpha or the material's color has alpha less than 255. --- clutter/cogl/cogl/cogl-primitives.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/cogl/cogl/cogl-primitives.c b/clutter/cogl/cogl/cogl-primitives.c index 76df31f..016833a 100644 --- a/clutter/cogl/cogl/cogl-primitives.c +++ b/clutter/cogl/cogl/cogl-primitives.c @@ -970,7 +970,7 @@ cogl_polygon (CoglTextureVertex *vertices, if (use_color) { - enable_flags |= COGL_ENABLE_COLOR_ARRAY; + enable_flags |= COGL_ENABLE_COLOR_ARRAY | COGL_ENABLE_BLEND; GE( glColorPointer (4, GL_UNSIGNED_BYTE, stride_bytes, /* NB: [X,Y,Z,TX,TY...,R,G,B,A,...] */ -- 2.7.4