From 09bae9b23a20470d375552175b9b65e68a2d6878 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 10 Oct 2018 13:51:22 +0200 Subject: [PATCH] egl_init: Write an error message if surfaceless is not supported It is nice to know why things go wrong. Reviewed-by: Gurchetan Singh Signed-off-by: Gert Wollny Signed-off-by: Jakob Bornecrantz --- src/virgl_egl_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/virgl_egl_context.c b/src/virgl_egl_context.c index aa26354..48774de 100644 --- a/src/virgl_egl_context.c +++ b/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); #endif /* 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; }