mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
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:
parent
6a3f6a460e
commit
3a3c815286
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user