summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongyeon Kim <dy5.kim@samsung.com>2015-03-02 16:21:22 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-03-02 16:22:12 +0900
commit80b21a7d3f6960e07345f7ec96877995a4e10905 (patch)
tree35052cb9763dcc79e88e20b1c2d1a68884e62820
parentde797bbd3bb5e6c137a9908c29cb124e4d396eb5 (diff)
evas/gl_x11: fix duplicated egl error check
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>
-rw-r--r--src/modules/evas/engines/gl_x11/evas_x_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/evas/engines/gl_x11/evas_x_main.c b/src/modules/evas/engines/gl_x11/evas_x_main.c
index db8d70ae75..7cad2e6d2a 100644
--- a/src/modules/evas/engines/gl_x11/evas_x_main.c
+++ b/src/modules/evas/engines/gl_x11/evas_x_main.c
@@ -190,9 +190,10 @@ eng_window_new(Evas_Engine_Info_GL_X11 *info,
190 NULL); 190 NULL);
191 if (gw->egl_surface[0] == EGL_NO_SURFACE) 191 if (gw->egl_surface[0] == EGL_NO_SURFACE)
192 { 192 {
193 printf("surf creat fail! %x\n", eglGetError()); 193 int err = eglGetError();
194 printf("surf creat fail! %x\n", err);
194 ERR("eglCreateWindowSurface() fail for %#x. code=%#x", 195 ERR("eglCreateWindowSurface() fail for %#x. code=%#x",
195 (unsigned int)gw->win, eglGetError()); 196 (unsigned int)gw->win, err);
196 eng_window_free(gw); 197 eng_window_free(gw);
197 return NULL; 198 return NULL;
198 } 199 }