summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@imgtec.com>2017-09-11 13:52:28 +0100
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2017-09-18 11:57:27 +0300
commitc05ee89ab0c08eab4c3a839be6181513cc4852a4 (patch)
treefcc7edcde97ec813d97ebbe31b0451fd432060a8
parent38ea2d2254c606e69238b641b422816c79cb1f44 (diff)
clients/nested: fix boolean test
weston_check_egl_extension() returns a bool, not a pointer. Fixes: ce5b614c80b4dfe8e899 "clients/nested: use weston_check_egl_extension over strstr" Cc: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
-rw-r--r--clients/nested.c2
1 files changed, 1 insertions, 1 deletions
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;
}