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:
Simon Ser 2021-04-28 23:22:46 +02:00 committed by Kenny Levinsen
parent 7ec5bf6b10
commit bcabe34a2e
2 changed files with 28 additions and 0 deletions

View file

@ -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;
};
/**