From dbfd3f0f444680d85556edc0b96dff68ea22722d Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Tue, 11 Aug 2009 13:49:12 +0100 Subject: [PATCH] [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. --- clutter/cogl/common/cogl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/cogl/common/cogl.c b/clutter/cogl/common/cogl.c index bfd2aac..2c74b53 100644 --- a/clutter/cogl/common/cogl.c +++ b/clutter/cogl/common/cogl.c @@ -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; } -- 2.7.4