summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/system-gl.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/system-gl.cc b/tests/system-gl.cc
index 92dea5e..00108cd 100644
--- a/tests/system-gl.cc
+++ b/tests/system-gl.cc
@@ -27,7 +27,7 @@ void glew_dump() {
};
const char * gl_errors[] = {
- "​GL_INVALID_ENUM​", // 0x0500
+ "GL_INVALID_ENUM", // 0x0500
"GL_INVALID_VALUE", // 0x0501
"GL_INVALID_OPERATION", // 0x0502
"GL_OUT_OF_MEMORY" // 0x0503
@@ -38,7 +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 " << gl_errors[tGLErr-0x500] << " after " << function << endl;
+ cerr << "OpenGL error " << hex << tGLErr << "(" <<
+ << gl_errors[tGLErr-0x500] << ") while " << task << endl;
else
cerr << "OpenGL error 0x" << hex << tGLErr << " after " << function << endl;
return true;
contact: Jan Huwald // Impressum