examples: remove visual for EGL_PLATFORM_WAYLAND_EXT

The Wayland EGL platform doesn't have visuals.
This commit is contained in:
Simon Ser 2021-01-04 11:26:08 +01:00
parent adfb7cd35a
commit 9714638f3b
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
8 changed files with 8 additions and 16 deletions

View file

@ -611,8 +611,7 @@ int main(int argc, char **argv) {
assert(cursor_surface);
EGLint attribs[] = { EGL_ALPHA_SIZE, 8, EGL_NONE };
wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display,
attribs, WL_SHM_FORMAT_ARGB8888);
wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, attribs, 0);
wl_surface = wl_compositor_create_surface(compositor);
assert(wl_surface);