mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
[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
0c32573ffa
commit
f8e6727e74
@ -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