From ad398d583b7b5e2b3e3a0c00eda6b5eb358121d9 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Wed, 8 Sep 2010 01:41:01 +0100 Subject: [PATCH] glx: Mark stage clip initialized even for NULL user clip If a NULL clip is passed to clutter_stage_glx_add_redraw_clip then we update the redraw clip to have width of 0, but we weren't setting stage_glx->initialized_redraw_clip = TRUE. This could result in a full, unclipped stage redraw being reduced to a clipped redraw. --- clutter/glx/clutter-stage-glx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clutter/glx/clutter-stage-glx.c b/clutter/glx/clutter-stage-glx.c index 7d84818a4..2e6291bbe 100644 --- a/clutter/glx/clutter-stage-glx.c +++ b/clutter/glx/clutter-stage-glx.c @@ -380,12 +380,11 @@ clutter_stage_glx_add_redraw_clip (ClutterStageWindow *stage_window, if (stage_clip == NULL) { stage_glx->bounding_redraw_clip.width = 0; + stage_glx->initialized_redraw_clip = TRUE; return; } - /* Do nothing on an empty clip to avoid confusing with out magic-flag - * degenerate clip - */ + /* Ignore requests to add degenerate/empty clip rectangles */ if (stage_clip->width == 0 || stage_clip->height == 0) return;