From 63c69cee6ec3ec3c292af9caf9d3ccd6d7498bbf Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 13 Oct 2018 23:39:38 -0400 Subject: [PATCH] Fix headless backend It was only working if you ran it underneath an already-working Wayland compositor. Running with the headless backend on the API would break. --- render/egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/egl.c b/render/egl.c index 585baaeb0..cfa37f203 100644 --- a/render/egl.c +++ b/render/egl.c @@ -121,7 +121,7 @@ bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, void *remote_display, if (platform == EGL_PLATFORM_SURFACELESS_MESA) { assert(remote_display == NULL); - egl->display = eglGetDisplay(EGL_DEFAULT_DISPLAY); + egl->display = eglGetPlatformDisplayEXT(platform, EGL_DEFAULT_DISPLAY, NULL); } else { egl->display = eglGetPlatformDisplayEXT(platform, remote_display, NULL); }