mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 14:38:07 +02:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue