aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-08-09 15:58:22 -0400
committerDrew DeVault <sir@cmpwn.com>2017-08-09 17:31:38 -0400
commit87fe13a9faa6cb3bb243426f03812f2011f6d2ec (patch)
treeaa0b684a6e070245a04543510bc8588c90f0833f
parent3ce1341e3c0276ef20df5c7b89cc9ce260d05b9e (diff)
release shm buffer after uploading
-rw-r--r--types/wlr_surface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_surface.c b/types/wlr_surface.c
index c6011e86..f4480bf4 100644
--- a/types/wlr_surface.c
+++ b/types/wlr_surface.c
@@ -55,6 +55,7 @@ static void surface_commit(struct wl_client *client,
} else {
uint32_t format = wl_shm_buffer_get_format(buffer);
wlr_texture_upload_shm(surface->texture, format, buffer);
+ wl_resource_queue_event(surface->pending_buffer, WL_BUFFER_RELEASE);
}
}
}