问题
A simple question, does the error code 0x0500 mean anything besides there was an error?
回答1:
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.
来源:https://stackoverflow.com/questions/3704828/opengl-es-1-1-reporting-0x0500-error