From e128e6c08dc0a735b1a8c6cc61097eaf0f61fb83 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Wed, 13 Jan 2021 22:49:07 -0500 Subject: render: drop egl parameters from wlr_renderer_autocreate --- backend/drm/renderer.c | 3 +-- backend/headless/backend.c | 3 +-- backend/wayland/backend.c | 3 +-- backend/x11/backend.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) (limited to 'backend') diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index f2d7677c..783fec74 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -29,8 +29,7 @@ bool init_drm_renderer(struct wlr_drm_backend *drm, return false; } - renderer->wlr_rend = wlr_renderer_autocreate(EGL_PLATFORM_GBM_KHR, - renderer->gbm); + renderer->wlr_rend = wlr_renderer_autocreate(&drm->backend); if (!renderer->wlr_rend) { wlr_log(WLR_ERROR, "Failed to create EGL/WLR renderer"); goto error_gbm; diff --git a/backend/headless/backend.c b/backend/headless/backend.c index d48c4953..02e3774a 100644 --- a/backend/headless/backend.c +++ b/backend/headless/backend.c @@ -219,8 +219,7 @@ struct wlr_backend *wlr_headless_backend_create(struct wl_display *display) { goto error_dup; } - struct wlr_renderer *renderer = wlr_renderer_autocreate( - EGL_PLATFORM_GBM_KHR, gbm_alloc->gbm_device); + struct wlr_renderer *renderer = wlr_renderer_autocreate(&backend->backend); if (!renderer) { wlr_log(WLR_ERROR, "Failed to create renderer"); goto error_renderer; diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c index a1e0f970..f2ce6947 100644 --- a/backend/wayland/backend.c +++ b/backend/wayland/backend.c @@ -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; diff --git a/backend/x11/backend.c b/backend/x11/backend.c index 84938de3..9da474f5 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -547,8 +547,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, } x11->allocator = &gbm_alloc->base; - x11->renderer = wlr_renderer_autocreate(EGL_PLATFORM_GBM_KHR, - gbm_alloc->gbm_device); + x11->renderer = wlr_renderer_autocreate(&x11->backend); if (x11->renderer == NULL) { wlr_log(WLR_ERROR, "Failed to create renderer"); goto error_event; -- cgit v1.2.3