mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
96a185d8bc
Previously when CLUTTER_DEBUG_PAINT_DAMAGE_REGION was set, that would lead to has_buffer_age==FALSE, which would lead to use_clipped_redraw==FALSE which would mean swap_region was always empty. And so the blue region of CLUTTER_DEBUG_PAINT_DAMAGE_REGION was always empty, *and* fb_clip_region was always the full view rectangle which is not useful for debugging. Now when CLUTTER_DEBUG_PAINT_DAMAGE_REGION is set, we don't let that affect use_clipped_redraw, which means fb_clip_region is calculated realistically. But that's not enough. Calculating fb_clip_region properly with CLUTTER_DEBUG_PAINT_DAMAGE_REGION would still lead to colouring artefacts left on screen from previous frames that don't apply to the current frame. So to fix that we also paint_stage for the whole screen every time when using CLUTTER_DEBUG_PAINT_DAMAGE_REGION. So now you will only ever see red and blue shading that's applicable to the current frame, and no artefacts from the previous frames. Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1535 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1571> |
||
---|---|---|
.. | ||
clutter | ||
.gitignore | ||
meson.build |