diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-11-17 22:34:49 -0500 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-10-16 16:25:08 +0200 |
commit | d57dbe1d4c783234fc346d4e0e06944059e44bcf (patch) | |
tree | f23757376797a9fcc0ee9faa0476fe6ddbb04778 | |
parent | 5d646a5d6f3143cd73e870ed9c1c5a3ec24acd9f (diff) | |
download | mutter-d57dbe1d4c783234fc346d4e0e06944059e44bcf.tar.gz |
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
-rw-r--r-- | cogl/cogl/cogl-framebuffer.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/cogl/cogl/cogl-framebuffer.c b/cogl/cogl/cogl-framebuffer.c index 69863a4a0..fb46b569b 100644 --- a/cogl/cogl/cogl-framebuffer.c +++ b/cogl/cogl/cogl-framebuffer.c @@ -401,18 +401,11 @@ 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 */ - } + _cogl_clip_stack_get_bounds (clip_stack, + &framebuffer->clear_clip_x0, + &framebuffer->clear_clip_y0, + &framebuffer->clear_clip_x1, + &framebuffer->clear_clip_y1); } } |