summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>2015-04-08 17:02:21 +0300
committerDaniel Stone <daniels@collabora.com>2015-04-08 16:41:04 +0100
commitf282454cf6cb9859876d148a83bf99450ce860d8 (patch)
tree2d492a118010654506c015f79ac11693e1aa514c /src
parent2992d7192df639b0c9b04948de7feb50f36983bf (diff)
gl-renderer: check EGL_EXT_platform_base in supports()
An EGL implementation may support client extensions without supporting EGL_EXT_platform_base. In such a case, we should return 0 to fall back to the old eglGetDisplay() way. Cc: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'src')
-rw-r--r--src/gl-renderer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gl-renderer.c b/src/gl-renderer.c
index 5a2ed9f5..35cd7e7b 100644
--- a/src/gl-renderer.c
+++ b/src/gl-renderer.c
@@ -2213,6 +2213,9 @@ gl_renderer_supports(struct weston_compositor *ec,
extensions);
}
+ if (!strstr(extensions, "EGL_EXT_platform_base"))
+ return 0;
+
snprintf(s, sizeof s, "EGL_KHR_platform_%s", extension_suffix);
if (strstr(extensions, s))
return 1;
@@ -2225,8 +2228,8 @@ gl_renderer_supports(struct weston_compositor *ec,
if (strstr(extensions, s))
return 1;
- /* at this point we definitely have some client extensions but
- * haven't found the supplied client extension, so chances are it's
+ /* at this point we definitely have some platform extensions but
+ * haven't found the supplied platform, so chances are it's
* not supported. */
return -1;