From fe891ebd4ea35f73286f84e374b71fc78e53e930 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Thu, 1 Dec 2022 04:57:53 -0500 Subject: output_init_render: Allow re-initialization This lets the compositor call this function after the fact to replace the renderer/allocator after a renderer context lost. --- include/wlr/types/wlr_output.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index bb056b30..cf75d864 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -278,7 +278,8 @@ void wlr_output_create_global(struct wlr_output *output); void wlr_output_destroy_global(struct wlr_output *output); /** * Initialize the output's rendering subsystem with the provided allocator and - * renderer. Can only be called once. + * renderer. After initialization, this function may invoked again to reinitialize + * the allocator and renderer to different values. * * Call this function prior to any call to wlr_output_attach_render(), * wlr_output_commit() or wlr_output_cursor_create(). -- cgit v1.2.3