From 3a3c815286daa55761787a49d7a33c6eb8c3d74d Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 9 Dec 2009 01:46:09 +0000 Subject: [PATCH] stage: Premultiply the stage color In case we are using Stage:use-alpha then we need to premultiply the stage color to get the correct blending from the compositor. --- clutter/clutter-stage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c index 4fac83d84..313cc276d 100644 --- a/clutter/clutter-stage.c +++ b/clutter/clutter-stage.c @@ -263,6 +263,7 @@ clutter_stage_paint (ClutterActor *self) priv->color.blue, priv->use_alpha ? real_alpha : 255); + cogl_color_premultiply (&stage_color); cogl_clear (&stage_color, COGL_BUFFER_BIT_COLOR | COGL_BUFFER_BIT_DEPTH);