OpenGL Error Codes

OpenGL includes the following error codes:

Error Code Description
GL_INVALID_ENUM GLenum argument out of range.
GL_INVALID_VALUE Numeric argument out of range.
GL_INVALID_OPERATION Operation illegal in current state.
GL_STACK_OVERFLOW Function would cause a stack overflow.
GL_STACK_UNDERFLOW Function would cause a stack underflow.
GL_OUT_OF_MEMORY Not enough memory left to execute function.