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
This commit is contained in:
Emmanuele Bassi 2011-06-14 16:11:54 +01:00
parent 81e9bf6127
commit 05bcd40729

View File

@ -1062,6 +1062,9 @@ _clutter_stage_do_update (ClutterStage *stage)
if (CLUTTER_ACTOR_IN_DESTRUCTION (stage) || priv->impl == NULL) if (CLUTTER_ACTOR_IN_DESTRUCTION (stage) || priv->impl == NULL)
return FALSE; return FALSE;
if (!CLUTTER_ACTOR_IS_REALIZED (stage))
return FALSE;
/* NB: We need to ensure we have an up to date layout *before* we /* 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 * check or clear the pending redraws flag since a relayout may
* queue a redraw. * queue a redraw.