actor: don't pass NULL to _stage_set_pick_buffer_valid
This adds a check in clutter_actor_real_queue_redraw after calling _clutter_actor_get_stage_internal to check in case the actor doesn't yet have an associated stage so we can avoid passing a NULL stage pointer to _clutter_stage_set_pick_buffer_valid which could cause a crash.
This commit is contained in:
parent
37d0dbe6b2
commit
f66e1de0e3
@ -1802,6 +1802,7 @@ clutter_actor_real_queue_redraw (ClutterActor *self,
|
||||
* invalidate the pick buffer in _clutter_stage_queue_actor_redraw
|
||||
*/
|
||||
stage = _clutter_actor_get_stage_internal (self);
|
||||
if (stage != NULL)
|
||||
_clutter_stage_set_pick_buffer_valid (CLUTTER_STAGE (stage), FALSE);
|
||||
|
||||
/* Although we could determine here that a full stage redraw
|
||||
|
Loading…
Reference in New Issue
Block a user