mirror of https://github.com/vitalif/openscad
Preserve output state so that everything afterwards doesn't get turned into hex
parent
1752fcee8c
commit
7223f2ac05
|
@ -82,7 +82,9 @@ bool report_glerror(const char * function)
|
||||||
{
|
{
|
||||||
GLenum tGLErr = glGetError();
|
GLenum tGLErr = glGetError();
|
||||||
if (tGLErr != GL_NO_ERROR) {
|
if (tGLErr != GL_NO_ERROR) {
|
||||||
cerr << "OpenGL error 0x" << hex << tGLErr << ": " << gluErrorString(tGLErr) << " after " << function << endl;
|
std::ostringstream hexErr;
|
||||||
|
hexErr << hex << tGLErr;
|
||||||
|
cerr << "OpenGL error 0x" << hexErr.str() << ": " << gluErrorString(tGLErr) << " after " << function << endl;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue