OpenGL ES 1.1 reporting 0x0500 error
A simple question, does the error code 0x0500 mean anything besides there 开发者_StackOverflow中文版was an error?
It means "GL_INVALID_ENUM" -- somewhere you passed an invalid GLenum. This is defined in the gl.h header file. Indeed--it's not very helpful.
EDIT: My strategy in dealing with these errors it to surround OpenGL calls with a macro that asserts everything is ok (glGetError() GL_NO_ERROR). These get compiled out for performance tests.
精彩评论