some build fixes... oops.

SVN revision: 45693
This commit is contained in:
Carsten Haitzler 2010-01-29 06:33:10 +00:00
parent a61baea31e
commit 325da4619c
2 changed files with 6 additions and 5 deletions

View File

@ -1173,8 +1173,8 @@ _native_free_cb(void *data, void *image)
if (n->egl_surface)
{
if (glsym_eglDestroyImage)
n->egl_surface = glsym_eglDestroyImage(re->win->egl_disp,
n->egl_surface);
glsym_eglDestroyImage(re->win->egl_disp,
n->egl_surface);
}
# endif
#else
@ -1265,7 +1265,7 @@ eng_image_native_set(void *data, void *image, void *native)
if (!eglChooseConfig(re->win->egl_disp, config_attrs,
&egl_config, 1, &num_config))
{
printf("ERROR: eglChooseConfig() failed for pixmap 0x%x, num_config = %i\n", pm, num_config);
printf("ERROR: eglChooseConfig() failed for pixmap 0x%x, num_config = %i\n", (unsigned int)pm, num_config);
}
n->pixmap = pm;
n->visual = vis;
@ -1285,11 +1285,12 @@ eng_image_native_set(void *data, void *image, void *native)
n->egl_surface = glsym_eglCreateImage(re->win->egl_disp,
EGL_NO_CONTEXT,
EGL_NATIVE_PIXMAP_KHR,
(void *)pm,
NULL);
#endif
if (!n->egl_surface)
{
printf("ERROR: eglCreatePixmapSurface() for 0x%x failed\n", pm);
printf("ERROR: eglCreatePixmapSurface() for 0x%x failed\n", (unsigned int)pm);
}
evas_gl_common_image_native_enable(im);
}

View File

@ -118,7 +118,7 @@ eng_window_new(Display *disp,
NULL);
if (gw->egl_surface[0] == EGL_NO_SURFACE)
{
printf("Error: eglCreateWindowSurface() fail.\n", gw->win);
printf("Error: eglCreateWindowSurface() fail for 0x%x.\n", (unsigned int)gw->win);
}
if (context == EGL_NO_CONTEXT)
context = eglCreateContext(gw->egl_disp, gw->egl_config, NULL,