mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
render: drop egl parameters from wlr_renderer_autocreate
This commit is contained in:
parent
affc59454e
commit
e128e6c08d
8 changed files with 35 additions and 15 deletions
|
|
@ -437,8 +437,7 @@ struct wlr_backend *wlr_wl_backend_create(struct wl_display *display,
|
|||
}
|
||||
wl->allocator = &gbm_alloc->base;
|
||||
|
||||
wl->renderer = wlr_renderer_autocreate(EGL_PLATFORM_GBM_KHR,
|
||||
gbm_alloc->gbm_device);
|
||||
wl->renderer = wlr_renderer_autocreate(&wl->backend);
|
||||
if (wl->renderer == NULL) {
|
||||
wlr_log(WLR_ERROR, "Failed to create renderer");
|
||||
goto error_allocator;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue