From a4bb9db2fa022e3acdfbddbce5de11c08fc8d1f9 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Fri, 21 Oct 2011 12:03:41 +0000 Subject: [PATCH] hmm gles doesnt have internal format fetching. SVN revision: 64253 --- legacy/evas/src/modules/engines/gl_common/evas_gl_texture.c | 3 +++ 1 file changed, 3 insertions(+) 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 e995b3a3ad..a25faa1b20 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 @@ -112,6 +112,8 @@ _tex_2d(int intfmt, int w, int h, int fmt, int type) int intfmtret = -1; glTexImage2D(GL_TEXTURE_2D, 0, intfmt, w, h, 0, fmt, type, NULL); GLERR(__FUNCTION__, __FILE__, __LINE__, ""); +#ifdef GL_TEXTURE_INTERNAL_FORMAT +// this is not in opengles!!! hrrrm glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_INTERNAL_FORMAT, &intfmtret); if (intfmtret != intfmt) @@ -119,6 +121,7 @@ _tex_2d(int intfmt, int w, int h, int fmt, int type) ERR("Fail tex alloc %ix%i", w, h); // XXX send async err to evas } +#endif } static void