From 07d75c99dba871db1ab28e70840ab55010c3314c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 4 Jan 2021 11:16:57 +0100 Subject: render: remove EGL config and visual from wlr_renderer_autocreate This isn't used anymore by any backend. Some examples still provide an EGL config to wlr_egl_init, so we can't drop it yet there. --- backend/drm/renderer.c | 2 +- backend/headless/backend.c | 2 +- backend/wayland/backend.c | 2 +- backend/x11/backend.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'backend') diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index ebba3bb6..4c65afae 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -31,7 +31,7 @@ bool init_drm_renderer(struct wlr_drm_backend *drm, } renderer->wlr_rend = wlr_renderer_autocreate(&renderer->egl, - EGL_PLATFORM_GBM_KHR, renderer->gbm, NULL, 0); + EGL_PLATFORM_GBM_KHR, renderer->gbm); 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 6380b6a5..5e5cee6a 100644 --- a/backend/headless/backend.c +++ b/backend/headless/backend.c @@ -207,7 +207,7 @@ struct wlr_backend *wlr_headless_backend_create(struct wl_display *display) { } struct wlr_renderer *renderer = wlr_renderer_autocreate(&backend->priv_egl, - EGL_PLATFORM_GBM_KHR, gbm_alloc->gbm_device, NULL, 0); + EGL_PLATFORM_GBM_KHR, gbm_alloc->gbm_device); 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 1b8ddf21..d562be7a 100644 --- a/backend/wayland/backend.c +++ b/backend/wayland/backend.c @@ -315,7 +315,7 @@ struct wlr_backend *wlr_wl_backend_create(struct wl_display *display, wl_event_source_check(wl->remote_display_src); wl->renderer = wlr_renderer_autocreate(&wl->egl, EGL_PLATFORM_WAYLAND_EXT, - wl->remote_display, NULL, 0); + wl->remote_display); if (!wl->renderer) { wlr_log(WLR_ERROR, "Could not create renderer"); goto error_event; diff --git a/backend/x11/backend.c b/backend/x11/backend.c index 01b2e82f..c16191f8 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -536,7 +536,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, x11->allocator = &gbm_alloc->base; x11->renderer = wlr_renderer_autocreate(&x11->egl, EGL_PLATFORM_GBM_KHR, - gbm_alloc->gbm_device, NULL, 0); + gbm_alloc->gbm_device); if (x11->renderer == NULL) { wlr_log(WLR_ERROR, "Failed to create renderer"); goto error_event; -- cgit v1.2.3