cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4aeb8a4e7dcbc79207535c49b3766aea4ea86f79

commit 4aeb8a4e7dcbc79207535c49b3766aea4ea86f79
Author: Minkyoung Kim <mer....@samsung.com>
Date:   Tue Feb 17 16:34:35 2015 +0100

    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 <ced...@osg.samsung.com>
---
 src/modules/evas/engines/gl_x11/evas_x_main.c | 3 +--
 1 file changed, 1 insertion(+), 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 0c96f55..db8d70a 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,
         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);

-- 


Reply via email to