[PATCH weston] clients/nested: fix boolean test
Eric Engestrom
eric.engestrom at imgtec.com
Mon Sep 11 12:52:28 UTC 2017
weston_check_egl_extension() returns a bool, not a pointer.
Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
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
More information about the wayland-devel
mailing list