From 6edeb13595a9236c6030bedefc14c62ba27e6675 Mon Sep 17 00:00:00 2001 From: don Date: Wed, 19 Oct 2011 19:57:34 -0500 Subject: cleanup error report 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; -- cgit v0.10.1