summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);