diff --git a/freeglut/freeglut/progs/demos/smooth_opengl3/smooth_opengl3.c b/freeglut/freeglut/progs/demos/smooth_opengl3/smooth_opengl3.c index 8784759..e30e9f4 100755 --- a/freeglut/freeglut/progs/demos/smooth_opengl3/smooth_opengl3.c +++ b/freeglut/freeglut/progs/demos/smooth_opengl3/smooth_opengl3.c @@ -52,8 +52,9 @@ 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) { + const GLubyte* sError = gluErrorString(error); + fprintf (stderr, "GL error 0x%X, %s, detected in %s\n", error, sError, functionName); } }