From f3bf7a0d5a654cb577f5dfc36d60af9372f0b2e9 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 17 May 2022 16:01:37 +0300 Subject: [PATCH] gl-renderer: add error messages for missing EGL platforms Found by inspection, looks like these cases could use an explicit error message. Signed-off-by: Pekka Paalanen --- libweston/renderer-gl/egl-glue.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libweston/renderer-gl/egl-glue.c b/libweston/renderer-gl/egl-glue.c index c9e8172a..d62629f0 100644 --- a/libweston/renderer-gl/egl-glue.c +++ b/libweston/renderer-gl/egl-glue.c @@ -593,8 +593,10 @@ gl_renderer_setup_egl_client_extensions(struct gl_renderer *gr) weston_log("warning: EGL_EXT_platform_base not supported.\n"); /* Surfaceless is unusable without platform_base extension */ - if (gr->platform == EGL_PLATFORM_SURFACELESS_MESA) + if (gr->platform == EGL_PLATFORM_SURFACELESS_MESA) { + weston_log("Error: EGL surfaceless platform cannot be used.\n"); return -1; + } return 0; } @@ -614,6 +616,7 @@ gl_renderer_setup_egl_client_extensions(struct gl_renderer *gr) /* at this point we definitely have some platform extensions but * haven't found the supplied platform, so chances are it's * not supported. */ + weston_log("Error: EGL does not support %s platform.\n", extension_suffix); return -1; }