wlr_compositor: Move buffer damage clear to end of commit

It makes sense to do it here because it is where we null the buffer. The
buffer damage is only useful to us as long as we have the buffer.
This commit is contained in:
Alexander Orzechowski 2023-05-04 13:50:27 -04:00
parent a96efda6c5
commit ce918e8139

View file

@ -564,6 +564,8 @@ static void surface_commit_state(struct wlr_surface *surface,
// released immediately on commit when they are uploaded to the GPU.
wlr_buffer_unlock(surface->current.buffer);
surface->current.buffer = NULL;
pixman_region32_clear(&surface->buffer_damage);
}
static void surface_handle_commit(struct wl_client *client,