From 6b3e820f35719b11fb8723f40b9e8e03a6fd6189 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sat, 9 Apr 2011 04:13:21 +0000 Subject: [PATCH] gles warning-- SVN revision: 58514 --- .../src/modules/engines/gl_common/evas_gl_texture.c | 10 ++++------ legacy/evas/src/modules/engines/gl_x11/evas_engine.c | 4 ++++ legacy/evas/src/modules/engines/gl_x11/evas_x_main.c | 7 ++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/legacy/evas/src/modules/engines/gl_common/evas_gl_texture.c b/legacy/evas/src/modules/engines/gl_common/evas_gl_texture.c index 6e8246b9f5..9e3d8f8204 100644 --- a/legacy/evas/src/modules/engines/gl_common/evas_gl_texture.c +++ b/legacy/evas/src/modules/engines/gl_common/evas_gl_texture.c @@ -647,8 +647,6 @@ evas_gl_texture_pool_empty(Evas_GL_Texture_Pool *pt) #if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX) if (pt->dyn.img) { - void *egldisplay = pt->gc->egldisp; - secsym_eglDestroyImage(pt->gc->egldisp, pt->dyn.img); pt->dyn.img = NULL; pt->dyn.data = NULL; @@ -1052,13 +1050,13 @@ evas_gl_common_texture_yuv_update(Evas_GL_Texture *tex, DATA8 **rows, unsigned i GLERR(__FUNCTION__, __FILE__, __LINE__, ""); _tex_sub_2d(0, 0, w / 2, h / 2, tex->ptv->format, tex->ptv->dataformat, rows[h + (h / 2)]); #else - int y; + unsigned int y; glPixelStorei(GL_UNPACK_ALIGNMENT, 1); GLERR(__FUNCTION__, __FILE__, __LINE__, ""); glBindTexture(GL_TEXTURE_2D, tex->pt->texture); GLERR(__FUNCTION__, __FILE__, __LINE__, ""); - if ((rows[1] - rows[0]) == w) + if ((rows[1] - rows[0]) == (int)w) _tex_sub_2d(0, 0, w, h, tex->pt->format, tex->pt->dataformat, rows[0]); else { @@ -1068,7 +1066,7 @@ evas_gl_common_texture_yuv_update(Evas_GL_Texture *tex, DATA8 **rows, unsigned i glBindTexture(GL_TEXTURE_2D, tex->ptu->texture); GLERR(__FUNCTION__, __FILE__, __LINE__, ""); - if ((rows[h + 1] - rows[h]) == (w / 2)) + if ((rows[h + 1] - rows[h]) == (int)(w / 2)) _tex_sub_2d(0, 0, w / 2, h / 2, tex->ptu->format, tex->ptu->dataformat, rows[h]); else { @@ -1078,7 +1076,7 @@ evas_gl_common_texture_yuv_update(Evas_GL_Texture *tex, DATA8 **rows, unsigned i glBindTexture(GL_TEXTURE_2D, tex->ptv->texture); GLERR(__FUNCTION__, __FILE__, __LINE__, ""); - if ((rows[h + (h / 2) + 1] - rows[h + (h / 2)]) == (w / 2)) + if ((rows[h + (h / 2) + 1] - rows[h + (h / 2)]) == (int)(w / 2)) _tex_sub_2d(0, 0, w / 2, h / 2, tex->ptv->format, tex->ptv->dataformat, rows[h + (h / 2)]); else { diff --git a/legacy/evas/src/modules/engines/gl_x11/evas_engine.c b/legacy/evas/src/modules/engines/gl_x11/evas_engine.c index cfd35ae628..0cf3e45668 100644 --- a/legacy/evas/src/modules/engines/gl_x11/evas_engine.c +++ b/legacy/evas/src/modules/engines/gl_x11/evas_engine.c @@ -1122,6 +1122,8 @@ _native_bind_cb(void *data, void *image) glBindTexture(GL_TEXTURE_2D, n->ns.data.opengl.texture_id); GLERR(__FUNCTION__, __FILE__, __LINE__, ""); } + return; + data = NULL; } static void @@ -1154,6 +1156,8 @@ _native_unbind_cb(void *data, void *image) glBindTexture(GL_TEXTURE_2D, 0); GLERR(__FUNCTION__, __FILE__, __LINE__, ""); } + return; + data = NULL; } static void diff --git a/legacy/evas/src/modules/engines/gl_x11/evas_x_main.c b/legacy/evas/src/modules/engines/gl_x11/evas_x_main.c index 24e2fa6080..63cf43792b 100644 --- a/legacy/evas/src/modules/engines/gl_x11/evas_x_main.c +++ b/legacy/evas/src/modules/engines/gl_x11/evas_x_main.c @@ -218,9 +218,9 @@ eng_window_new(Display *disp, vendor = glGetString(GL_VENDOR); renderer = glGetString(GL_RENDERER); version = glGetString(GL_VERSION); - if (!vendor) vendor = "-UNKNOWN-"; - if (!renderer) renderer = "-UNKNOWN-"; - if (!version) version = "-UNKNOWN-"; + if (!vendor) vendor = (unsigned char *)"-UNKNOWN-"; + if (!renderer) renderer = (unsigned char *)"-UNKNOWN-"; + if (!version) version = (unsigned char *)"-UNKNOWN-"; if (getenv("EVAS_GL_INFO")) { fprintf(stderr, "vendor: %s\n", vendor); @@ -513,6 +513,7 @@ eng_window_new(Display *disp, evas_gl_common_context_resize(gw->gl_context, w, h, rot); gw->surf = 1; return gw; + indirect = 0; } void