diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-19 11:34:28 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-12-30 17:09:40 +0100 |
commit | 4b03bdc3ab0cb1a0296c4d48b125f15a07ca99bd (patch) | |
tree | ba92975fc0f6c3fe7d62bbf2af120ea865383e77 /backend/x11 | |
parent | bec1e6b149eb6a5eb470dd4eee6ba0aa57f1b590 (diff) |
Remove wlr_create_renderer_func_t
This callback allowed compositors to customize the EGL config used by
the renderer. However with renderer v6 EGL configs aren't used anymore.
Instead, buffers are allocated via GBM and GL FBOs are rendered to. So
customizing the EGL config is a no-op.
Diffstat (limited to 'backend/x11')
-rw-r--r-- | backend/x11/backend.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c index 2d09eebe..11cc4fa9 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -322,8 +322,7 @@ static bool query_dri3_formats(struct wlr_x11_backend *x11) { } struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, - const char *x11_display, - wlr_renderer_create_func_t create_renderer_func) { + const char *x11_display) { struct wlr_x11_backend *x11 = calloc(1, sizeof(*x11)); if (!x11) { return NULL; @@ -512,11 +511,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, } x11->allocator = &gbm_alloc->base; - if (!create_renderer_func) { - create_renderer_func = wlr_renderer_autocreate; - } - - x11->renderer = create_renderer_func(&x11->egl, EGL_PLATFORM_GBM_KHR, + x11->renderer = wlr_renderer_autocreate(&x11->egl, EGL_PLATFORM_GBM_KHR, gbm_alloc->gbm_device, NULL, 0); if (x11->renderer == NULL) { wlr_log(WLR_ERROR, "Failed to create renderer"); |