mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Refactor EGL handling
This commit is contained in:
parent
4aaf76cb66
commit
c24351681f
26 changed files with 156 additions and 98 deletions
|
|
@ -39,6 +39,13 @@ void wlr_backend_destroy(struct wlr_backend *backend) {
|
|||
free(backend);
|
||||
}
|
||||
|
||||
struct wlr_egl *wlr_backend_get_egl(struct wlr_backend *backend) {
|
||||
if (!backend->impl->get_egl) {
|
||||
return NULL;
|
||||
}
|
||||
return backend->impl->get_egl(backend->state);
|
||||
}
|
||||
|
||||
static struct wlr_backend *attempt_wl_backend(struct wl_display *display) {
|
||||
struct wlr_backend *backend = wlr_wl_backend_create(display);
|
||||
if (backend) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue