[PATCH weston 1/3] gl-renderer: fix EGL initialization steps
Pekka Paalanen
ppaalanen at gmail.com
Wed Apr 8 07:02:20 PDT 2015
From: Manuel Bachmann <manuel.bachmann at open.eurogiciel.org>
Some DRI drivers, including VMware vmwgfx, do not support
calling eglQueryString() with a EGL_NO_DISPLAY parameter.
Just as we do in gl_renderer_supports(), which returns 0
but does not fail in this case, do not fail in
gl_renderer_setup_egl_extensions().
Signed-off-by: Manuel Bachmann <manuel.bachmann at open.eurogiciel.org>
[Pekka: split the patch]
Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
src/gl-renderer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gl-renderer.c b/src/gl-renderer.c
index b3b2364..5a2ed9f 100644
--- a/src/gl-renderer.c
+++ b/src/gl-renderer.c
@@ -2136,7 +2136,7 @@ gl_renderer_setup_egl_extensions(struct weston_compositor *ec)
(const char *) eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS);
if (!extensions) {
weston_log("Retrieving EGL client extension string failed.\n");
- return -1;
+ return 0;
}
if (strstr(extensions, "EGL_EXT_platform_base"))
--
2.0.5
More information about the wayland-devel
mailing list