|
|
@ -232,10 +232,6 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (drm->parent) {
|
|
|
|
if (drm->parent) {
|
|
|
|
// Ensure we use the same renderer as the parent backend
|
|
|
|
|
|
|
|
drm->backend.renderer = wlr_backend_get_renderer(&drm->parent->backend);
|
|
|
|
|
|
|
|
assert(drm->backend.renderer != NULL);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!init_drm_renderer(drm, &drm->mgpu_renderer)) {
|
|
|
|
if (!init_drm_renderer(drm, &drm->mgpu_renderer)) {
|
|
|
|
wlr_log(WLR_ERROR, "Failed to initialize renderer");
|
|
|
|
wlr_log(WLR_ERROR, "Failed to initialize renderer");
|
|
|
|
goto error_resources;
|
|
|
|
goto error_resources;
|
|
|
|