mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
shm: clear buffer’s dirty region before returning a cached buffer
A non-busy buffer should always have an empty dirty region
This commit is contained in:
parent
37bbf44f6d
commit
945a346596
2 changed files with 1 additions and 2 deletions
1
shm.c
1
shm.c
|
|
@ -250,6 +250,7 @@ shm_get_buffer(struct wl_shm *shm, int width, int height, unsigned long cookie,
|
|||
cookie, (void *)&it->item);
|
||||
it->item.busy = true;
|
||||
it->item.purge = false;
|
||||
pixman_region32_clear(&it->item.dirty);
|
||||
free(it->item.scroll_damage);
|
||||
it->item.scroll_damage = NULL;
|
||||
xassert(it->item.pix_instances == pix_instances);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue