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:
Alessandro Bono 2017-08-20 14:36:43 +02:00
parent 483ed98777
commit 168479862d

View File

@ -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)