mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
meta-background-actor: Unset flags when they are not valid anymore
Currently, the flags that describe what is changed are never unsetted. Unset each flag just after using them. https://bugzilla.gnome.org/show_bug.cgi?id=783512
This commit is contained in:
parent
483ed98777
commit
168479862d
@ -311,6 +311,8 @@ setup_pipeline (MetaBackgroundActor *self,
|
||||
|
||||
cogl_pipeline_set_layer_texture (priv->pipeline, 0, texture);
|
||||
cogl_pipeline_set_layer_wrap_mode (priv->pipeline, 0, wrap_mode);
|
||||
|
||||
priv->changed &= ~CHANGED_BACKGROUND;
|
||||
}
|
||||
|
||||
if ((priv->changed & CHANGED_VIGNETTE_PARAMETERS) != 0)
|
||||
@ -319,6 +321,8 @@ setup_pipeline (MetaBackgroundActor *self,
|
||||
cogl_pipeline_get_uniform_location (priv->pipeline,
|
||||
"vignette_sharpness"),
|
||||
priv->vignette_sharpness);
|
||||
|
||||
priv->changed &= ~CHANGED_VIGNETTE_PARAMETERS;
|
||||
}
|
||||
|
||||
if (priv->vignette)
|
||||
|
Loading…
Reference in New Issue
Block a user