[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:
Robert Bragg 2009-08-11 13:49:12 +01:00
parent f0cb337d92
commit dbfd3f0f44

View File

@ -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;
} }