[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:
parent
67a896e5df
commit
435d415a45
@ -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,...] */
|
||||
|
Loading…
Reference in New Issue
Block a user