From 07f2dba7e24abd7b25327cf6b6b3f60dc17091d2 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Thu, 30 Sep 2010 18:42:40 +0100 Subject: [PATCH] stage: handle unclipped redraw following clipped In the case that an unclipped redraw of an actor is queued after a clipped we should update any existing ClutterStageQueueRedrawEntry so entry->has_clip = FALSE and free the previous clip. --- clutter/clutter-stage.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c index b50fab840..f51c8dcbd 100644 --- a/clutter/clutter-stage.c +++ b/clutter/clutter-stage.c @@ -3199,6 +3199,11 @@ _clutter_stage_queue_actor_redraw (ClutterStage *stage, * clip together with the existing clip */ if (clip) clutter_paint_volume_union (&entry->clip, clip); + else + { + clutter_paint_volume_free (&entry->clip); + entry->has_clip = FALSE; + } return entry; } else