diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-08-11 18:43:15 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-08-11 18:43:13 -0400 |
commit | 302237fa77b37dbd9e40aeef5760a03a2c30dd83 (patch) | |
tree | 20f1b679d9137ab0842b93aeee0abfa065dac1fb /src/lib/efl_wl/efl_wl.c | |
parent | 8052b90d207b5432e0dce80f1967fa8310e39c03 (diff) |
efl-wl: handle case where eglBindWaylandDisplay fails
@fix
Diffstat (limited to 'src/lib/efl_wl/efl_wl.c')
-rw-r--r-- | src/lib/efl_wl/efl_wl.c | 5 |
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) | |||
3949 | c->glsfc = evas_gl_surface_create(c->gl, c->glcfg, 1, 1); | 3949 | c->glsfc = evas_gl_surface_create(c->gl, c->glcfg, 1, 1); |
3950 | evas_gl_make_current(c->gl, c->glsfc, c->glctx); | 3950 | evas_gl_make_current(c->gl, c->glsfc, c->glctx); |
3951 | c->glapi = evas_gl_context_api_get(c->gl, c->glctx); | 3951 | c->glapi = evas_gl_context_api_get(c->gl, c->glctx); |
3952 | if (c->glapi->evasglBindWaylandDisplay) | 3952 | if ((!c->glapi->evasglBindWaylandDisplay) || |
3953 | c->glapi->evasglBindWaylandDisplay(c->gl, c->display); | 3953 | (!c->glapi->evasglBindWaylandDisplay(c->gl, c->display))) |
3954 | else | ||
3955 | comp_gl_shutdown(c); | 3954 | comp_gl_shutdown(c); |
3956 | } | 3955 | } |
3957 | 3956 | ||