Summary:
When egl window surface creation fails, eglGetError() is called twice,
thus removing error state.
Reviewers: cedric, Hermet, jpeg
Reviewed By: jpeg
Subscribers: mer.kim, wonsik, cedric
Differential Revision: https://phab.enlightenment.org/D2064
Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
NULL);
if (gw->egl_surface[0] == EGL_NO_SURFACE)
{
- printf("surf creat fail! %x\n", eglGetError());
+ int err = eglGetError();
+ printf("surf creat fail! %x\n", err);
ERR("eglCreateWindowSurface() fail for %#x. code=%#x",
- (unsigned int)gw->win, eglGetError());
+ (unsigned int)gw->win, err);
eng_window_free(gw);
return NULL;
}