diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-28 23:39:36 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-05-21 22:13:54 +0200 |
commit | 4dae12890f511aed876cc156eb0f28827ed76086 (patch) | |
tree | df5ffce38eccc05c1c800371c1e46198bb1420a2 /include/wlr | |
parent | bcabe34a2edc71fef338cd770e851a43b68484cf (diff) |
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.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/backend.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; }; /** |