aboutsummaryrefslogtreecommitdiff
path: root/render/egl.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-10-14 08:33:25 +0200
committerGitHub <noreply@github.com>2018-10-14 08:33:25 +0200
commit7daca85bcf4f3c0567697afb3603472394a85273 (patch)
treef5e5287211a87d87e905dbf725e53dbbf0a22493 /render/egl.c
parentf3d2f7c3d1d346c8844cbed32de5beaedbefa28e (diff)
parent63c69cee6ec3ec3c292af9caf9d3ccd6d7498bbf (diff)
Merge pull request #1309 from swaywm/fix-headless-libinput
Fix headless backend
Diffstat (limited to 'render/egl.c')
-rw-r--r--render/egl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/egl.c b/render/egl.c
index 1f8ff25d..5c0f2c4a 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);
}