mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
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:
parent
a96efda6c5
commit
ce918e8139
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue