aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-01-13 22:49:07 -0500
committerSimon Ser <contact@emersion.fr>2021-01-16 08:57:42 +0100
commite128e6c08dc0a735b1a8c6cc61097eaf0f61fb83 (patch)
treefaa2b6327b407f91786a823cdc83c3b1d797ed35 /backend
parentaffc59454ec9b650cc345ab5ec0c310e8350427f (diff)
render: drop egl parameters from wlr_renderer_autocreate
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/renderer.c3
-rw-r--r--backend/headless/backend.c3
-rw-r--r--backend/wayland/backend.c3
-rw-r--r--backend/x11/backend.c3
4 files changed, 4 insertions, 8 deletions
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;