Imagination PowerVR SDK Blog

glDisable(GL_MATRIX_PALETTE_OES) Issue


#1


Hi,



I'm running OGLES_WINDOWS_PCEMULATION_2.07.27.0484 on Windows 7.



It looks like calling glDisable(GL_MATRIX_PALETTE_OES) before calling glTexImage2D causes glTexImage2D to return an odd GL_INVALID_ENUM error.



The bug is easily reproducible in the OGLESTexturing sample :



- glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, g_i32TexSize, g_i32TexSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, pTexData);



+ glDisable(GL_MATRIX_PALETTE_OES);

+ assert (glGetError() == 0);

+ glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, g_i32TexSize, g_i32TexSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, pTexData);

+ assert (glGetError() == 0); // glGetError == GL_INVALID_ENUM





Thank you in advance,



Olivier