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. --- render/egl.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'render') diff --git a/render/egl.c b/render/egl.c index 088c4ad7..de6d6b1b 100644 --- a/render/egl.c +++ b/render/egl.c @@ -170,14 +170,8 @@ bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, void *remote_display, goto error; } - if (platform == EGL_PLATFORM_SURFACELESS_MESA) { - assert(remote_display == NULL); - egl->display = egl->procs.eglGetPlatformDisplayEXT(platform, - EGL_DEFAULT_DISPLAY, NULL); - } else { - egl->display = egl->procs.eglGetPlatformDisplayEXT(platform, - remote_display, NULL); - } + egl->display = egl->procs.eglGetPlatformDisplayEXT(platform, + remote_display, NULL); if (egl->display == EGL_NO_DISPLAY) { wlr_log(WLR_ERROR, "Failed to create EGL display"); goto error; -- cgit v1.2.3