mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-10 13:29:44 -05:00
backend/drm: stop initializing renderer and allocator during creation
This commit is contained in:
parent
36c78d567d
commit
b55acfcc16
1 changed files with 0 additions and 6 deletions
|
|
@ -259,12 +259,6 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wlr_renderer *renderer = wlr_backend_get_renderer(&drm->backend);
|
|
||||||
struct wlr_allocator *allocator = backend_get_allocator(&drm->backend);
|
|
||||||
if (renderer == NULL || allocator == NULL) {
|
|
||||||
goto error_mgpu_renderer;
|
|
||||||
}
|
|
||||||
|
|
||||||
drm->session_destroy.notify = handle_session_destroy;
|
drm->session_destroy.notify = handle_session_destroy;
|
||||||
wl_signal_add(&session->events.destroy, &drm->session_destroy);
|
wl_signal_add(&session->events.destroy, &drm->session_destroy);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue