diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-08-14 13:29:41 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-08-15 07:36:50 -0400 |
commit | b49650b5552d4323a23a1662761d87bb084421a4 (patch) | |
tree | 76160df0cacc23c9bb9876485ec2665bd146a167 | |
parent | d87c58416ba32c265b905b6eca8b2a59c6233af5 (diff) |
initialize buffer damage before conversion
-rw-r--r-- | types/wlr_surface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_surface.c b/types/wlr_surface.c index a94ed4c5..b1f273af 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -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, |