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.
This commit is contained in:
Robert Bragg 2010-09-08 01:41:01 +01:00
parent 8d2a3d6088
commit ad398d583b

View File

@ -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;