[clutter] stage: ensure correct stage is current when picking
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] stage: ensure correct stage is current when picking
- Date: Wed, 1 Jun 2011 21:48:29 +0000 (UTC)
commit ba8cc8e064c43d79676d20eb09b24e1085587a95
Author: �yvind Kolås <pippin linux intel com>
Date: Wed Jun 1 22:42:41 2011 +0100
stage: ensure correct stage is current when picking
_clutter_stage_do_pick called by interactive picking and
clutter_stage_get_actor_at_pos could be accidentally reading back the wrong
actor id's if an other stage has had a more recent render due to animation.
This should resolve some multi stage / ClutterGtk related pick id warnings.
clutter/clutter-stage.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c
index 68b7873..a6aeea1 100644
--- a/clutter/clutter-stage.c
+++ b/clutter/clutter-stage.c
@@ -1260,6 +1260,7 @@ _clutter_stage_do_pick (ClutterStage *stage,
CLUTTER_TIMER_START (_clutter_uprof_context, pick_timer);
context = _clutter_context_get_default ();
+ clutter_stage_ensure_current (stage);
/* It's possible that we currently have a static scene and have renderered a
* full, unclipped pick buffer. If so we can simply continue to read from
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]