From 2b04857343732b6aa7b8c4512387560f7f936aa9 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 11 Jan 2020 17:45:49 +0100 Subject: render/egl: remove SURFACELESS_MESA special case Users can just pass EGL_DEFAULT_DISPLAY themselves. --- backend/headless/backend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend') diff --git a/backend/headless/backend.c b/backend/headless/backend.c index d6bb141a..7b189f49 100644 --- a/backend/headless/backend.c +++ b/backend/headless/backend.c @@ -113,7 +113,8 @@ struct wlr_backend *wlr_headless_backend_create(struct wl_display *display, } backend->renderer = create_renderer_func(&backend->egl, - EGL_PLATFORM_SURFACELESS_MESA, NULL, (EGLint*)config_attribs, 0); + EGL_PLATFORM_SURFACELESS_MESA, EGL_DEFAULT_DISPLAY, + (EGLint*)config_attribs, 0); if (!backend->renderer) { wlr_log(WLR_ERROR, "Failed to create renderer"); free(backend); -- cgit v1.2.3