mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
initialize buffer damage before conversion
This commit is contained in:
parent
d87c58416b
commit
b49650b555
1 changed files with 1 additions and 0 deletions
|
@ -141,6 +141,7 @@ static void surface_commit(struct wl_client *client,
|
|||
&surface->pending.buffer_damage);
|
||||
|
||||
pixman_region32_t buffer_damage;
|
||||
pixman_region32_init(&buffer_damage);
|
||||
wlr_surface_to_buffer_region(surface, &surface->current.surface_damage,
|
||||
&buffer_damage);
|
||||
pixman_region32_union(&surface->current.buffer_damage,
|
||||
|
|
Loading…
Reference in a new issue