[clutter] stage: Ignore do_update() on unrealized stages
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] stage: Ignore do_update() on unrealized stages
- Date: Tue, 14 Jun 2011 16:01:40 +0000 (UTC)
commit 05bcd40729fe807af1dfa1148495e7f072548d77
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Tue Jun 14 16:11:54 2011 +0100
stage: Ignore do_update() on unrealized stages
An unrealized stage has no resources set yet, so we might as well skip
it during the master clock spin.
https://bugzilla.gnome.org/show_bug.cgi?id=652566
clutter/clutter-stage.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c
index 220e00e..6373d8b 100644
--- a/clutter/clutter-stage.c
+++ b/clutter/clutter-stage.c
@@ -1062,6 +1062,9 @@ _clutter_stage_do_update (ClutterStage *stage)
if (CLUTTER_ACTOR_IN_DESTRUCTION (stage) || priv->impl == NULL)
return FALSE;
+ if (!CLUTTER_ACTOR_IS_REALIZED (stage))
+ return FALSE;
+
/* NB: We need to ensure we have an up to date layout *before* we
* check or clear the pending redraws flag since a relayout may
* queue a redraw.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]