OpenGL Error Codes ( http://www.opengl.org/wiki/OpenGL_Error_Codes)
In OpenGL, the function glGetError() tells you if an error has occurred in a program;
for example, if you pass an invalid value to a function.
When an error occurs, an error code is saved by the implementation.
This error code will be the return value of glGetError() next time it is called.
Error Codes returned by glGetError:
- GL_INVALID_ENUM, 0x0500:
This is given only for local problems; if the spec allows the enumeration in certain circumstances,
and other parameters or state dictate those circumstances, then GL_INVALID_OPERATION is the result instead.
- GL_INVALID_VALUE, 0x0501:
This is only given for local problems; if the spec allows the value in certain circumstances,
and other parameters or state dictate those circumstances, then GL_INVALID_OPERATION is the result instead.
- GL_INVALID_OPERATION, 0x0502:
It is also given for commands where combinations of parameters define what the legal parameters are.
- GL_STACK_OVERFLOW, 0x0503:
- GL_STACK_UNDERFLOW, 0x0504:
- GL_OUT_OF_MEMORY, 0x0505:
The results of OpenGL functions that return this error are undefined; it is allowable for partial operations to happen.
- GL_INVALID_FRAMEBUFFER_OPERATION, 0x0506:
- GL_TABLE_TOO_LARGE1, 0x8031:
댓글 없음:
댓글 쓰기