[cogl_clear] Also pass the alpha component of the CoglColor to glClearColor
Previously we were passing a constant of 0.0 for the alpha component which wasn't as flexible.
This commit is contained in:
parent
23bd5ecd47
commit
1bdfb9e6d4
@ -102,7 +102,7 @@ cogl_clear (const CoglColor *color, gulong buffers)
|
|||||||
GE( glClearColor (cogl_color_get_red_float (color),
|
GE( glClearColor (cogl_color_get_red_float (color),
|
||||||
cogl_color_get_green_float (color),
|
cogl_color_get_green_float (color),
|
||||||
cogl_color_get_blue_float (color),
|
cogl_color_get_blue_float (color),
|
||||||
0.0) );
|
cogl_color_get_alpha_float (color)) );
|
||||||
gl_buffers |= GL_COLOR_BUFFER_BIT;
|
gl_buffers |= GL_COLOR_BUFFER_BIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user