mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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.
This commit is contained in:
parent
7ec5bf6b10
commit
bcabe34a2e
2 changed files with 28 additions and 0 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue