[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 23bd5ecd47
commit 1bdfb9e6d4

View File

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