weston_check_egl_extension() returns a bool, not a pointer.
Signed-off-by: Eric Engestrom <[email protected]>
---
clients/nested.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clients/nested.c b/clients/nested.c
index 173076a6..e9070e9b 100644
--- a/clients/nested.c
+++ b/clients/nested.c
@@ -748,7 +748,7 @@ nested_init_compositor(struct nested *nested)
nested->egl_display = display_get_egl_display(nested->display);
extensions = eglQueryString(nested->egl_display, EGL_EXTENSIONS);
- if (weston_check_egl_extension(extensions,
"EGL_WL_bind_wayland_display") == NULL) {
+ if (!weston_check_egl_extension(extensions,
"EGL_WL_bind_wayland_display")) {
fprintf(stderr, "no EGL_WL_bind_wayland_display extension\n");
return -1;
}
--
Cheers,
Eric
_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel