[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.
This commit is contained in:
Neil Roberts 2009-10-27 13:18:51 +00:00
parent 0c32573ffa
commit f8e6727e74

View File

@ -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,...] */