mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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:
parent
8d2a3d6088
commit
ad398d583b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user