Imagination PowerVR SDK Blog

GL_LUMINANCE -> GL_INVALID_ENUM


#1

A GL_ERROR is generated when using GL_LUMINANCE for both format and internal format…





Is there a cause?





I even try with GL_LUMINANCE_ALPHA (both for iformat and format) and it work fine… The GL manual says that the iformat and format should be the same… what would explain the GL_INVALID_ENUM?


#2

Do you experience this problem when using VFrame, or does this only happen on your target platform/s?


Which graphics API are you using?





Using GL_LUMINANCE for the format and internal format should be fine.


#3

VFrame, not the target platform (iPhone)


#4

Any workaround to avoid that it generate a GL_ERROR?


#5

Are you using the most recent SDK that is available from our download page?





I’ve tested this with OGLES 1.1 and 2.0 using a recent 2.6 build of VFrame and it is working correctly.


#6

Are you using the most recent SDK that is available from our download page?





>> Yep





I’ve tested this with OGLES 1.1 and 2.0 using a recent 2.6 build of VFrame and it is working correctly.





>> Well try it again cuz I can guarantee you that its not working… I have a wrapper that debug every gl call, and a GL_ERROR pop only on that one…



#7

Honestly 1 GL_ERROR on that specific case doesn’t really bother me that much what really bothers me is glBlendEquationOES that is not working:





https://www.imgtec.com/forum/forum_posts.asp?TID=893