OpenGL ES 1.1 reporting 0x0500 error

只愿长相守 提交于 2020-01-24 07:28:45

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!