From 28aa803916f37a3ffdc514ce4564a8ceb7763409 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 9 Jul 2021 23:27:07 +0200 Subject: buffer: drop resource arg from wlr_client_buffer_create This function doesn't need the wl_resource anymore. In the failure paths, wlr_buffer_unlock in surface_apply_damage will take care of sending wl_buffer.release. --- include/wlr/types/wlr_buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h index 041bcb3b..046cd392 100644 --- a/include/wlr/types/wlr_buffer.h +++ b/include/wlr/types/wlr_buffer.h @@ -150,7 +150,7 @@ struct wlr_client_buffer { * from it, and copying its wl_resource. */ struct wlr_client_buffer *wlr_client_buffer_create(struct wlr_buffer *buffer, - struct wlr_renderer *renderer, struct wl_resource *resource); + struct wlr_renderer *renderer); /** * Get a client buffer from a generic buffer. If the buffer isn't a client -- cgit v1.2.3