cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=c20457e33d4eee89760bf88f6d0d5d75cd3fbca5
commit c20457e33d4eee89760bf88f6d0d5d75cd3fbca5 Author: Joogab Yun <joogab....@samsung.com> Date: Tue Nov 10 14:42:58 2015 -0800 evas: fix error checking of eglBindAPI. Summary: if eglGetError sequencially called, second eglGetError() doesn't give the information of real Error. Reviewers: jpeg, spacegrapher, cedric Reviewed By: cedric Subscribers: wonsik, scholb.kim, cedric, dkdk Differential Revision: https://phab.enlightenment.org/D3305 Signed-off-by: Cedric BAIL <ced...@osg.samsung.com> --- src/modules/evas/engines/wayland_egl/evas_wl_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/evas/engines/wayland_egl/evas_wl_main.c b/src/modules/evas/engines/wayland_egl/evas_wl_main.c index 6b8322f..e65570c 100644 --- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c +++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c @@ -83,8 +83,7 @@ eng_window_new(Evas *evas, Evas_Engine_Info_Wayland_Egl *einfo, int w, int h, Re eng_window_free(gw); return NULL; } - eglBindAPI(EGL_OPENGL_ES_API); - if (eglGetError() != EGL_SUCCESS) + if (!eglBindAPI(EGL_OPENGL_ES_API)) { ERR("eglBindAPI() fail. code=%#x", eglGetError()); eng_window_free(gw); --