OpenGL Error Codes

OpenGL includes the following error codes.

SymbolicCodeDescription
GL_INVALID_ENUMGLenum argument out of range.
GL_INVALID_VALUENumeric argument out of range.
GL_INVALID_OPERATIONOperation illegal in current state.
GL_STACK_OVERFLOWFunction would cause a stack overflow.
GL_STACK_UNDERFLOWFunction would cause a stack underflow.
GL_OUT_OF_MEMORYNot enough memory left to execute function.
6 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.