diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-28 23:22:46 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-05-21 22:13:54 +0200 |
commit | bcabe34a2edc71fef338cd770e851a43b68484cf (patch) | |
tree | d6131bf082fd021b603d1c7048bedb503ba57594 /include/wlr | |
parent | 7ec5bf6b10d2a7e1d9cdfdfeed44ac6db8bdcc99 (diff) |
backend: automatically create renderer
If a backend accepts buffers (as indicated by get_buffer_caps) but
doesn't implement get_renderer, automatically create a renderer.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/backend.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/wlr/backend.h b/include/wlr/backend.h index b56e789c..020be18d 100644 --- a/include/wlr/backend.h +++ b/include/wlr/backend.h @@ -25,6 +25,10 @@ struct wlr_backend { /** Raised when new outputs are added, passed the wlr_output */ struct wl_signal new_output; } events; + + // Private state + + struct wlr_renderer *renderer; }; /** |