summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordon <don@shelley.tu.ok.cox.net>2011-10-20 00:57:34 (GMT)
committerdon <don@shelley.tu.ok.cox.net>2011-10-20 00:57:34 (GMT)
commit6edeb13595a9236c6030bedefc14c62ba27e6675 (patch)
tree9a520743cc3920a1c8844ead1b566c4ce32d4c61
parentc7a809e0fd653795a93642301bbff8a27581ea57 (diff)
cleanup error report
-rw-r--r--tests/system-gl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/system-gl.cc b/tests/system-gl.cc
index 8874662..7000221 100644
--- a/tests/system-gl.cc
+++ b/tests/system-gl.cc
@@ -38,8 +38,8 @@ bool report_glerror(const char * function)
GLenum tGLErr = glGetError();
if (tGLErr != GL_NO_ERROR) {
if ( (tGLErr-0x500)<=3 && (tGLErr-0x500)>=0 )
- cerr << "OpenGL error " << hex << tGLErr << "("
- << gl_errors[tGLErr-0x500] << ") while " << function << endl;
+ cerr << "OpenGL error 0x" << hex << tGLErr << " ("
+ << gl_errors[tGLErr-0x500] << ") after " << function << endl;
else
cerr << "OpenGL error 0x" << hex << tGLErr << " after " << function << endl;
return true;
contact: Jan Huwald // Impressum