aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-08-11 18:43:15 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-08-11 18:43:13 -0400
commit302237fa77b37dbd9e40aeef5760a03a2c30dd83 (patch)
tree20f1b679d9137ab0842b93aeee0abfa065dac1fb
parentefl-wl: always dismiss popups on hide (diff)
downloadefl-302237fa77b37dbd9e40aeef5760a03a2c30dd83.tar.gz
efl-wl: handle case where eglBindWaylandDisplay fails
@fix
-rw-r--r--src/lib/efl_wl/efl_wl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c
index 1cf4e6c7f9..16cd6627bc 100644
--- a/src/lib/efl_wl/efl_wl.c
+++ b/src/lib/efl_wl/efl_wl.c
@@ -3949,9 +3949,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);
}