hmm gles doesnt have internal format fetching.

SVN revision: 64253
This commit is contained in:
Carsten Haitzler 2011-10-21 12:03:41 +00:00
parent a9cee095f1
commit a4bb9db2fa
1 changed files with 3 additions and 0 deletions

View File

@ -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