git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@949
7f0cb862-5218-0410-a997-
914c9d46530a
void checkError(const char *functionName)
{
GLenum error;
void checkError(const char *functionName)
{
GLenum error;
- while (( error = glGetError() ) != GL_NO_ERROR) {
- fprintf (stderr, "GL error 0x%X detected in %s\n", error, functionName);
+ while (( error = glGetError() ) != GL_NO_ERROR) {\r
+ const GLubyte* sError = gluErrorString(error);
+ fprintf (stderr, "GL error 0x%X, %s, detected in %s\n", error, sError, functionName);