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.
This commit is contained in:
Emmanuele Bassi 2009-12-09 01:46:09 +00:00
parent 6a3f6a460e
commit 3a3c815286

View File

@ -263,6 +263,7 @@ clutter_stage_paint (ClutterActor *self)
priv->color.blue, priv->color.blue,
priv->use_alpha ? real_alpha priv->use_alpha ? real_alpha
: 255); : 255);
cogl_color_premultiply (&stage_color);
cogl_clear (&stage_color, cogl_clear (&stage_color,
COGL_BUFFER_BIT_COLOR | COGL_BUFFER_BIT_COLOR |
COGL_BUFFER_BIT_DEPTH); COGL_BUFFER_BIT_DEPTH);