From 435d415a45862046ec3e4a16095887fe96c873b3 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. --- cogl/cogl-primitives.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl-primitives.c b/cogl/cogl-primitives.c index 76df31f79..016833ad3 100644 --- a/cogl/cogl-primitives.c +++ b/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,...] */