egl_init: Write an error message if surfaceless is not supported

It is nice to know why things go wrong.

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Gert Wollny 6 years ago committed by Jakob Bornecrantz
parent dc0deb61f5
commit 09bae9b23a
  1. 3
      src/virgl_egl_context.c

@ -217,7 +217,8 @@ struct virgl_egl *virgl_egl_init(int fd, bool surfaceless, bool gles)
fprintf(stderr, "EGL extensions: %s\n", extension_list); fprintf(stderr, "EGL extensions: %s\n", extension_list);
#endif #endif
/* require surfaceless context */ /* require surfaceless context */
if (!virgl_egl_has_extension_in_string(extension_list, "EGL_KHR_surfaceless_context")) if (!virgl_egl_has_extension_in_string(extension_list, "EGL_KHR_surfaceless_context")) {
fprintf(stderr, "failed to find support for surfaceless context\n");
goto fail; goto fail;
} }

Loading…
Cancel
Save