<div dir="ltr">Looks good to me !<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-08 16:02 GMT+02:00 Pekka Paalanen <span dir="ltr"><<a href="mailto:ppaalanen@gmail.com" target="_blank">ppaalanen@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Pekka Paalanen <<a href="mailto:pekka.paalanen@collabora.co.uk">pekka.paalanen@collabora.co.uk</a>><br>
<br>
An EGL implementation may support client extensions without supporting<br>
EGL_EXT_platform_base. In such a case, we should return 0 to fall back<br>
to the old eglGetDisplay() way.<br>
<br>
Cc: Manuel Bachmann <<a href="mailto:manuel.bachmann@open.eurogiciel.org">manuel.bachmann@open.eurogiciel.org</a>><br>
Signed-off-by: Pekka Paalanen <<a href="mailto:pekka.paalanen@collabora.co.uk">pekka.paalanen@collabora.co.uk</a>><br>
---<br>
src/gl-renderer.c | 7 +++++--<br>
1 file changed, 5 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/gl-renderer.c b/src/gl-renderer.c<br>
index 5a2ed9f..35cd7e7 100644<br>
--- a/src/gl-renderer.c<br>
+++ b/src/gl-renderer.c<br>
@@ -2213,6 +2213,9 @@ gl_renderer_supports(struct weston_compositor *ec,<br>
extensions);<br>
}<br>
<br>
+ if (!strstr(extensions, "EGL_EXT_platform_base"))<br>
+ return 0;<br>
+<br>
snprintf(s, sizeof s, "EGL_KHR_platform_%s", extension_suffix);<br>
if (strstr(extensions, s))<br>
return 1;<br>
@@ -2225,8 +2228,8 @@ gl_renderer_supports(struct weston_compositor *ec,<br>
if (strstr(extensions, s))<br>
return 1;<br>
<br>
- /* at this point we definitely have some client extensions but<br>
- * haven't found the supplied client extension, so chances are it's<br>
+ /* at this point we definitely have some platform extensions but<br>
+ * haven't found the supplied platform, so chances are it's<br>
* not supported. */<br>
<br>
return -1;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.0.5<br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><font>Regards,<br>
<br>
<i><b>Manuel BACHMANN</b><br>
Tizen Project<br>
VANNES-FR</i><br>
</font></div></div>
</div>