Summary: If eglGetError sequencially called, second eglGetError() doesn't give the information of real Error.
@fix
Reviewers: raster, jpeg, cedric, Hermet
Subscribers: cedric, spacegrapher, wonsik
Differential Revision: https://phab.enlightenment.org/D1982
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
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);