framebuffer: Fix clip tracking in the unclipped case

Leaving the clip bounds untouched means that it will retain the stale value
of whatever it was when we last had a clip; reset it so that it contains the
full framebuffer contents instead.

https://bugzilla.gnome.org/show_bug.cgi?id=712562
https://gitlab.gnome.org/GNOME/mutter/merge_requests/402
This commit is contained in:
Jasper St. Pierre 2013-11-17 22:34:49 -05:00 committed by Georges Basile Stavracas Neto
parent 5d646a5d6f
commit d57dbe1d4c

View File

@ -401,19 +401,12 @@ cleared:
/* NB: A clear may be scissored so we need to track the extents
* that the clear is applicable too... */
if (clip_stack)
{
_cogl_clip_stack_get_bounds (clip_stack,
&framebuffer->clear_clip_x0,
&framebuffer->clear_clip_y0,
&framebuffer->clear_clip_x1,
&framebuffer->clear_clip_y1);
}
else
{
/* FIXME: set degenerate clip */
}
}
}
/* Note: the 'buffers' and 'color' arguments were switched around on