aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/efl_wl/efl_wl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/efl_wl/efl_wl.c')
-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);
}