ClutterStage: Don't add empty actors to the stage clip

Currently, if an actor with an empty paint volume is queued for redraw, it
will union in the box +0+0x1x1 to the stage clip bounds - avoid that
by special casing empty paint volumes.

https://bugzilla.gnome.org/show_bug.cgi?id=719747
This commit is contained in:
Owen W. Taylor 2013-12-03 00:32:14 -05:00
parent 3fdee4efe9
commit a2551dfa60

View File

@ -1312,6 +1312,9 @@ clutter_stage_real_queue_redraw (ClutterActor *actor,
return; return;
} }
if (redraw_clip->is_empty)
return;
_clutter_paint_volume_get_stage_paint_box (redraw_clip, _clutter_paint_volume_get_stage_paint_box (redraw_clip,
stage, stage,
&bounding_box); &bounding_box);