backend/drm: stop initializing renderer and allocator during creation

This commit is contained in:
Simon Zeni 2021-09-13 16:29:48 -04:00
parent 36c78d567d
commit b55acfcc16

View file

@ -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);