Hi
First question - is there dedicated forum about OpenGL ES 2.x ?
Second one - I’m writin OpenGL ES 2.0 implementation for some device, and I have question about behaviour of glTexImage2D;
Device support non-pow2 textures.
What glerror should i throw when user wants to create 9x9 texture with mipmaps, but he starts by defining level 1 not 0
sample code:
glGenTextures(…)
glBindTexture(…)
glTexImage2D(GL_TEXTURE_2D, 1, GL_ALPHA, 4, 4, …) // mip1 of 9x9 texture
glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, 9, 9, …) // base level of 9x9 texture
what should I do after the second call … return GL_INVALID_OPERATION or, throw away data from the first call and redefine texture as 9x9 not 8x8 (4 << 1 = 8).
Probably the khronos conformance tests have ansfer for this, but as the implementation is internal only we wont throw serious $$$ for those.
ATI emulator throws error, MALI emulator redefines texture … what behaviour is proper ?