mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 08:48:00 +02:00
gl-renderer: Don't accumulate damages on stale renderbuffers
Stale renderbuffers are kept in the renderbuffer list until they're destroyed by the backend. In the meantime, they shouldn't accumulate damages since they won't be used anymore. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
This commit is contained in:
parent
e3878c8214
commit
47035a776c
1 changed files with 5 additions and 2 deletions
|
|
@ -2408,8 +2408,11 @@ gl_renderer_repaint_output(struct weston_output *output,
|
|||
|
||||
/* Accumulate damage in all renderbuffers */
|
||||
wl_list_for_each(rb, &go->renderbuffer_list, link) {
|
||||
pixman_region32_union(&rb->damage, &rb->damage, output_damage);
|
||||
rb->border_damage |= go->border_status;
|
||||
if (!rb->stale) {
|
||||
pixman_region32_union(&rb->damage, &rb->damage,
|
||||
output_damage);
|
||||
rb->border_damage |= go->border_status;
|
||||
}
|
||||
}
|
||||
|
||||
if (renderbuffer)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue