[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
f0cb337d92
commit
dbfd3f0f44
@ -102,7 +102,7 @@ cogl_clear (const CoglColor *color, gulong buffers)
|
||||
GE( glClearColor (cogl_color_get_red_float (color),
|
||||
cogl_color_get_green_float (color),
|
||||
cogl_color_get_blue_float (color),
|
||||
0.0) );
|
||||
cogl_color_get_alpha_float (color)) );
|
||||
gl_buffers |= GL_COLOR_BUFFER_BIT;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user