forked from enlightenment/efl
note on detecting texture alloc fail. need to percolate that back
SVN revision: 64250
This commit is contained in:
parent
ed5360c648
commit
f8f5ad72ef
|
@ -109,8 +109,16 @@ _tex_format_index(GLuint format)
|
||||||
static void
|
static void
|
||||||
_tex_2d(int intfmt, int w, int h, int fmt, int type)
|
_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);
|
glTexImage2D(GL_TEXTURE_2D, 0, intfmt, w, h, 0, fmt, type, NULL);
|
||||||
GLERR(__FUNCTION__, __FILE__, __LINE__, "");
|
GLERR(__FUNCTION__, __FILE__, __LINE__, "");
|
||||||
|
glGetTexLevelParameteriv(GL_TEXTURE_2D, 0,
|
||||||
|
GL_TEXTURE_INTERNAL_FORMAT, &intfmtret);
|
||||||
|
if (intfmtret != intfmt)
|
||||||
|
{
|
||||||
|
ERR("Fail tex alloc %ix%i", w, h);
|
||||||
|
// XXX send async err to evas
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue