discomfitor pushed a commit to branch efl-1.20.

http://git.enlightenment.org/core/efl.git/commit/?id=2e0d748c33a6ddb4de80d766df0e8c7bcd0dde5c

commit 2e0d748c33a6ddb4de80d766df0e8c7bcd0dde5c
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Aug 11 18:43:15 2017 -0400

    efl-wl: handle case where eglBindWaylandDisplay fails
    
    @fix
---
 src/lib/efl_wl/efl_wl.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c
index 5c4ebe541c..f130a475ed 100644
--- a/src/lib/efl_wl/efl_wl.c
+++ b/src/lib/efl_wl/efl_wl.c
@@ -3887,9 +3887,8 @@ comp_gl_init(Comp *c)
    c->glsfc = evas_gl_surface_create(c->gl, c->glcfg, 1, 1);
    evas_gl_make_current(c->gl, c->glsfc, c->glctx);
    c->glapi = evas_gl_context_api_get(c->gl, c->glctx);
-   if (c->glapi->evasglBindWaylandDisplay)
-     c->glapi->evasglBindWaylandDisplay(c->gl, c->display);
-   else
+   if ((!c->glapi->evasglBindWaylandDisplay) ||
+       (!c->glapi->evasglBindWaylandDisplay(c->gl, c->display)))
      comp_gl_shutdown(c);
 }
 

-- 


Reply via email to