render/egl: remove SURFACELESS_MESA special case

Users can just pass EGL_DEFAULT_DISPLAY themselves.
This commit is contained in:
Simon Ser 2020-01-11 17:45:49 +01:00 committed by Drew DeVault
parent 3b35043d00
commit 2b04857343
2 changed files with 4 additions and 9 deletions

View file

@ -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;