From 6485fadc16a45ccbcbdcc76b064bcd2ee6256cda Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 25 Nov 2020 13:52:05 +0100 Subject: [PATCH] backend/wayland: don't set EGL visual The Wayland platform doesn't have visuals. By chance, WL_SHM_FORMAT_ARGB8888 is zero, which means egl_get_config was ignoring it and everything worked fine. --- backend/wayland/backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c index 314d45cdd..9290e28fd 100644 --- a/backend/wayland/backend.c +++ b/backend/wayland/backend.c @@ -316,7 +316,7 @@ struct wlr_backend *wlr_wl_backend_create(struct wl_display *display, } wl->renderer = create_renderer_func(&wl->egl, EGL_PLATFORM_WAYLAND_EXT, - wl->remote_display, config_attribs, WL_SHM_FORMAT_ARGB8888); + wl->remote_display, config_attribs, 0); if (!wl->renderer) { wlr_log(WLR_ERROR, "Could not create renderer");