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 <pekka.paalanen@collabora.com>
dev
Pekka Paalanen 3 years ago
parent b383f52d31
commit f3bf7a0d5a
  1. 5
      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"); weston_log("warning: EGL_EXT_platform_base not supported.\n");
/* Surfaceless is unusable without platform_base extension */ /* 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 -1;
}
return 0; 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 /* at this point we definitely have some platform extensions but
* haven't found the supplied platform, so chances are it's * haven't found the supplied platform, so chances are it's
* not supported. */ * not supported. */
weston_log("Error: EGL does not support %s platform.\n", extension_suffix);
return -1; return -1;
} }

Loading…
Cancel
Save