From 42df9414fbf63abee51cb3094cedb94ac0f0f8a3 Mon Sep 17 00:00:00 2001 From: Philipp Kaeser Date: Sun, 4 Aug 2024 11:43:17 +0200 Subject: [PATCH] wlr_scene: Add documentation to wlr_scene_create about how to destroy the allocated resources. --- include/wlr/types/wlr_scene.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index a8fc2159..a09ae8f1 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -306,6 +306,9 @@ struct wlr_scene_node *wlr_scene_node_at(struct wlr_scene_node *node, /** * Create a new scene-graph. + * + * The graph is also a wlr_scene_node. Associated resources can be destroyed + * through wlr_scene_node_destroy(). */ struct wlr_scene *wlr_scene_create(void);