handle case where eglBindWaylandDisplay fails during wl init

This commit is contained in:
Mike Blumenkrantz 2017-08-11 18:48:53 -04:00
parent d4179fea54
commit 0361db9fd5
1 changed files with 3 additions and 4 deletions

View File

@ -2802,10 +2802,9 @@ _e_comp_wl_gl_init(void)
evas_gl_make_current(e_comp_wl->wl.gl, e_comp_wl->wl.glsfc, e_comp_wl->wl.glctx);
e_comp_wl->wl.glapi = evas_gl_context_api_get(e_comp_wl->wl.gl, e_comp_wl->wl.glctx);
if (e_comp_wl->wl.glapi->evasglBindWaylandDisplay)
{
e_util_env_set("ELM_ACCEL", "gl");
e_comp->gl = e_comp_wl->wl.glapi->evasglBindWaylandDisplay(e_comp_wl->wl.gl, e_comp_wl->wl.disp);
}
e_comp->gl = e_comp_wl->wl.glapi->evasglBindWaylandDisplay(e_comp_wl->wl.gl, e_comp_wl->wl.disp);
if (e_comp->gl)
e_util_env_set("ELM_ACCEL", "gl");
else
_e_comp_wl_gl_shutdown();
}