From 1bdfb9e6d4740c8de9fd0490d5b08676ce6b2441 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. --- common/cogl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cogl.c b/common/cogl.c index bfd2aac6c..2c74b53db 100644 --- a/common/cogl.c +++ b/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; }