[mutter] meta-background-actor: Unset flags when they are not valid anymore



commit 168479862d91d9a2db9cebf6c689627544634ca1
Author: Alessandro Bono <abono gnome org>
Date:   Sun Aug 20 14:36:43 2017 +0200

    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

 src/compositor/meta-background-actor.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/meta-background-actor.c b/src/compositor/meta-background-actor.c
index 132494d..4dc5806 100644
--- a/src/compositor/meta-background-actor.c
+++ b/src/compositor/meta-background-actor.c
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]