cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=dccbd559d47364ee1d097c96ffd5777779fdf75f
commit dccbd559d47364ee1d097c96ffd5777779fdf75f Author: Cedric BAIL <[email protected]> Date: Tue Sep 30 18:31:51 2014 +0200 evas: GL_X11 - add some more error message. --- src/modules/evas/engines/gl_x11/evas_x_main.c | 7 +++++-- 1 file changed, 5 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 2c28471..7c5661d 100644 --- a/src/modules/evas/engines/gl_x11/evas_x_main.c +++ b/src/modules/evas/engines/gl_x11/evas_x_main.c @@ -238,6 +238,7 @@ eng_window_new(Evas_Engine_Info_GL_X11 *info, gw->glxwin = glXCreateWindow(gw->disp, fbconf, gw->win, NULL); if (!gw->glxwin) { + ERR("glXCreateWindow failed."); eng_window_free(gw); return NULL; } @@ -250,6 +251,7 @@ eng_window_new(Evas_Engine_Info_GL_X11 *info, if (!gw->context) { + ERR("Failed to create a context."); eng_window_free(gw); return NULL; } @@ -260,7 +262,7 @@ eng_window_new(Evas_Engine_Info_GL_X11 *info, if (!glXMakeContextCurrent(gw->disp, gw->glxwin, gw->glxwin, gw->context)) { - printf("Error: glXMakeContextCurrent(%p, %p, %p, %p)\n", (void *)gw->disp, (void *)gw->glxwin, (void *)gw->glxwin, (void *)gw->context); + ERR("glXMakeContextCurrent(%p, %p, %p, %p)\n", (void *)gw->disp, (void *)gw->glxwin, (void *)gw->glxwin, (void *)gw->context); eng_window_free(gw); return NULL; } @@ -269,7 +271,7 @@ eng_window_new(Evas_Engine_Info_GL_X11 *info, { if (!glXMakeCurrent(gw->disp, gw->win, gw->context)) { - printf("Error: glXMakeCurrent(%p, 0x%x, %p) failed\n", (void *)gw->disp, (unsigned int)gw->win, (void *)gw->context); + ERR("glXMakeCurrent(%p, 0x%x, %p) failed\n", (void *)gw->disp, (unsigned int)gw->win, (void *)gw->context); eng_window_free(gw); return NULL; } @@ -392,6 +394,7 @@ eng_window_new(Evas_Engine_Info_GL_X11 *info, gw->gl_context = glsym_evas_gl_common_context_new(); if (!gw->gl_context) { + ERR("Unable to get a new context.\n"); eng_window_free(gw); return NULL; } --
