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

@ -192,8 +192,7 @@ int main(int argc, char **argv) {
return EXIT_FAILURE; return EXIT_FAILURE;
} }
wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0);
WL_SHM_FORMAT_ARGB8888);
struct wl_surface *surface = wl_compositor_create_surface(compositor); struct wl_surface *surface = wl_compositor_create_surface(compositor);
struct xdg_surface *xdg_surface = struct xdg_surface *xdg_surface =

View file

@ -157,8 +157,7 @@ int main(int argc, char **argv) {
input_inhibit_manager); input_inhibit_manager);
assert(input_inhibitor); assert(input_inhibitor);
wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0);
WL_SHM_FORMAT_ARGB8888);
struct wl_surface *surface = wl_compositor_create_surface(compositor); struct wl_surface *surface = wl_compositor_create_surface(compositor);
assert(surface); assert(surface);

View file

@ -224,8 +224,7 @@ int main(int argc, char **argv) {
return EXIT_FAILURE; return EXIT_FAILURE;
} }
wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0);
WL_SHM_FORMAT_ARGB8888);
struct wl_surface *surface = wl_compositor_create_surface(compositor); struct wl_surface *surface = wl_compositor_create_surface(compositor);
struct xdg_surface *xdg_surface = struct xdg_surface *xdg_surface =

View file

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

View file

@ -211,8 +211,7 @@ int main(int argc, char **argv) {
wl_region_add(joint_region, 256, 256, 256, 256); wl_region_add(joint_region, 256, 256, 256, 256);
regions[REGION_TYPE_JOINT] = joint_region; regions[REGION_TYPE_JOINT] = joint_region;
wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0);
WL_SHM_FORMAT_ARGB8888);
struct wl_surface *surface = wl_compositor_create_surface(compositor); struct wl_surface *surface = wl_compositor_create_surface(compositor);
struct xdg_surface *xdg_surface = struct xdg_surface *xdg_surface =

View file

@ -443,8 +443,7 @@ int main(int argc, char **argv) {
e->egl = calloc(1, sizeof(struct wlr_egl)); e->egl = calloc(1, sizeof(struct wlr_egl));
e->width = e->height = 512; e->width = e->height = 512;
wlr_egl_init(e->egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, wlr_egl_init(e->egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0);
WL_SHM_FORMAT_ARGB8888);
/* Create the surface and xdg_toplevels, and set listeners */ /* Create the surface and xdg_toplevels, and set listeners */

View file

@ -364,8 +364,7 @@ int main(int argc, char **argv) {
zwp_text_input_v3_add_listener(text_input, &text_input_listener, NULL); zwp_text_input_v3_add_listener(text_input, &text_input_listener, NULL);
wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0);
WL_SHM_FORMAT_ARGB8888);
struct wl_surface *surface = wl_compositor_create_surface(compositor); struct wl_surface *surface = wl_compositor_create_surface(compositor);
struct xdg_surface *xdg_surface = struct xdg_surface *xdg_surface =

View file

@ -218,8 +218,7 @@ int main(int argc, char **argv) {
return EXIT_FAILURE; return EXIT_FAILURE;
} }
wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0);
WL_SHM_FORMAT_ARGB8888);
struct wl_surface *surface = wl_compositor_create_surface(compositor); struct wl_surface *surface = wl_compositor_create_surface(compositor);
struct xdg_surface *xdg_surface = struct xdg_surface *xdg_surface =