mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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.
This commit is contained in:
parent
31f338bb36
commit
63c69cee6e
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, void *remote_display,
|
||||||
|
|
||||||
if (platform == EGL_PLATFORM_SURFACELESS_MESA) {
|
if (platform == EGL_PLATFORM_SURFACELESS_MESA) {
|
||||||
assert(remote_display == NULL);
|
assert(remote_display == NULL);
|
||||||
egl->display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
egl->display = eglGetPlatformDisplayEXT(platform, EGL_DEFAULT_DISPLAY, NULL);
|
||||||
} else {
|
} else {
|
||||||
egl->display = eglGetPlatformDisplayEXT(platform, remote_display, NULL);
|
egl->display = eglGetPlatformDisplayEXT(platform, remote_display, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue