summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinkyoung Kim <mer.kim@samsung.com>2015-02-17 16:34:35 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-17 16:34:41 +0100
commit4aeb8a4e7dcbc79207535c49b3766aea4ea86f79 (patch)
tree5814b9734acb3bbc62037f49b29f787b6080980a
parentc0c487ac1a5e2adcae4a187cf3c579cfecb12089 (diff)
evas: fix error checking of eglBindAPI.
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>
-rw-r--r--src/modules/evas/engines/gl_x11/evas_x_main.c3
1 files changed, 1 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 0c96f5514f..db8d70ae75 100644
--- a/src/modules/evas/engines/gl_x11/evas_x_main.c
+++ b/src/modules/evas/engines/gl_x11/evas_x_main.c
@@ -175,8 +175,7 @@ eng_window_new(Evas_Engine_Info_GL_X11 *info,
175 eng_window_free(gw); 175 eng_window_free(gw);
176 return NULL; 176 return NULL;
177 } 177 }
178 eglBindAPI(EGL_OPENGL_ES_API); 178 if (!eglBindAPI(EGL_OPENGL_ES_API))
179 if (eglGetError() != EGL_SUCCESS)
180 { 179 {
181 ERR("eglBindAPI() fail. code=%#x", eglGetError()); 180 ERR("eglBindAPI() fail. code=%#x", eglGetError());
182 eng_window_free(gw); 181 eng_window_free(gw);