[cogl_clear] Also pass the alpha component of the CoglColor to glClearColor
authorRobert Bragg <robert@linux.intel.com>
Tue, 11 Aug 2009 12:49:12 +0000 (13:49 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 11 Aug 2009 13:15:44 +0000 (14:15 +0100)
Previously we were passing a constant of 0.0 for the alpha component which
wasn't as flexible.

clutter/cogl/common/cogl.c

index bfd2aac..2c74b53 100644 (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;
     }