5 * Call this function in your rendering loop to check for GL errors
6 * during development. Remove from release code.
8 * Written by Brian Paul and in the public domain.
18 GLboolean
CheckError( const char *message
)
20 GLenum error
= glGetError();
22 char *err
= (char *) gluErrorString( error
);
23 fprintf( stderr
, "GL Error: %s at %s\n", err
, message
);