“GL_INVALID_VALUE may be generated if level is greater than log 2 â¡ max , where max is the returned value of GL_MAX_TEXTURE_SIZE when target is GL_TEXTURE_2D or GL_MAX_CUBE_MAP_TEXTURE_SIZE when target is not GL_TEXTURE_2D.”
on OpenGL ES 2.0 Emu, max texture size is 8192, thus max level is 12, so values from 0..12 are legal
But if you pass for ex., 13 to glTexImage2D, the GL_INVALID_VALUE won’t popup…. I think this is a bug.
The value 14 and above will produce GL_INVALID_VALUE.