From 4dae12890f511aed876cc156eb0f28827ed76086 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 28 Apr 2021 23:39:36 +0200 Subject: backend: automatically create allocator Introduce a new backend_get_allocator function that automatically creates an allocator for the backend if the backend has a renderer. --- include/wlr/backend.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/wlr') diff --git a/include/wlr/backend.h b/include/wlr/backend.h index 020be18d..025f74bd 100644 --- a/include/wlr/backend.h +++ b/include/wlr/backend.h @@ -29,6 +29,7 @@ struct wlr_backend { // Private state struct wlr_renderer *renderer; + struct wlr_allocator *allocator; }; /** -- cgit v1.2.3