clients/nested: fix boolean test
weston_check_egl_extension() returns a bool, not a pointer.
Fixes: ce5b614c80
"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>
This commit is contained in:
parent
38ea2d2254
commit
c05ee89ab0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user