Handling Errors (OpenGL)

The gluErrorString function retrieves error strings that correspond to OpenGL or GLU error codes. The currently defined OpenGL error codes are described in glGetError. The GLU error codes are listed in gluErrorString, gluTessCallback, gluQuadricCallback, and gluNurbsCallback.

The return value for gluErrorString is a pointer to a descriptive string that corresponds to the OpenGL, GLU, or GLX error number passed in the errorCode parameter. The defined error codes are described in the OpenGL Reference Manual along with the function or function that can generate them.