if (!glXMakeContextCurrent(gw->disp, gw->glxwin, gw->glxwin,
gw->context))
{
- ERR("glXMakeContextCurrent(%p, %p, %p, %p)\n", (void *)gw->disp, (void *)gw->glxwin, (void *)gw->glxwin, (void *)gw->context);
+ ERR("glXMakeContextCurrent(%p, %p, %p, %p) failed",
+ (void *)gw->disp, (void *)gw->glxwin, (void *)gw->glxwin,
+ (void *)gw->context);
eng_window_free(gw);
return NULL;
}
{
if (!glXMakeCurrent(gw->disp, gw->win, gw->context))
{
- ERR("glXMakeCurrent(%p, 0x%x, %p) failed\n", (void *)gw->disp, (unsigned int)gw->win, (void *)gw->context);
+ ERR("glXMakeCurrent(%p, 0x%x, %p) failed", (void *)gw->disp,
+ (unsigned int)gw->win, (void *)gw->context);
eng_window_free(gw);
return NULL;
}
gw->gl_context = glsym_evas_gl_common_context_new();
if (!gw->gl_context)
{
- ERR("Unable to get a new context.\n");
+ ERR("Unable to get a new context.");
eng_window_free(gw);
return NULL;
}
static void
sym_missing(void)
{
- ERR("GL symbols missing!\n");
+ ERR("GL symbols missing!");
}
static int
if (!dst) dst = (typeof(dst))dlsym(gl_lib_handle, sym); \
if (!dst) \
{ \
- ERR("Symbol not found %s\n", sym); \
+ ERR("Symbol not found: %s", sym); \
return 0; \
}
#define FALLBAK(dst, typ) if (!dst) dst = (typeof(dst))sym_missing;
//------------------------------------------------//
#define FINDSYM(dst, sym, typ) \
if (!dst) dst = (typeof(dst))dlsym(gl_lib_handle, sym); \
- if (!dst) DBG("Symbol not found %s\n", sym);
+ if (!dst) DBG("Symbol not found: %s", sym);
#define FALLBAK(dst, typ) if (!dst) dst = (typeof(dst))sym_missing;
//------------------------------------------------------//
static void
init_gl(void)
{
- DBG("Initializing Software OpenGL APIs...\n");
+ DBG("Initializing Software OpenGL APIs...");
if (!gl_lib_init())
DBG("Unable to support EvasGL in this engine module. Install OSMesa to get it running");