From 198560fc1fe5e09f539c278b190eaf44b1402deb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 4 Jan 2021 11:30:30 +0100 Subject: examples: request an EGL config Client examples using wlr_egl would fail with EGL_BAD_CONFIG because they need an EGL config. Set the config attribs to a non-NULL value to make sure wlr_egl creates an EGL config. Fixes: 037710b1d428 ("render/egl: support config-less wlr_egl") --- examples/pointer-constraints.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/pointer-constraints.c') diff --git a/examples/pointer-constraints.c b/examples/pointer-constraints.c index 3dedfb0a..19b28e98 100644 --- a/examples/pointer-constraints.c +++ b/examples/pointer-constraints.c @@ -211,7 +211,8 @@ int main(int argc, char **argv) { wl_region_add(joint_region, 256, 256, 256, 256); regions[REGION_TYPE_JOINT] = joint_region; - wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0); + EGLint attribs[] = { EGL_NONE }; + wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, attribs, 0); struct wl_surface *surface = wl_compositor_create_surface(compositor); struct xdg_surface *xdg_surface = -- cgit v1.2.3