From 44d0e90f927e83b942d6f87b7d0808ea8f66f43e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 1 Nov 2005 20:16:31 +0000 Subject: [PATCH] Changed the error number reporting to be reported as hex. --- src/osg/State.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/osg/State.cpp b/src/osg/State.cpp index a87e96221..0cb9958a5 100644 --- a/src/osg/State.cpp +++ b/src/osg/State.cpp @@ -827,11 +827,11 @@ bool State::checkGLErrors(const char* str) const if (errorNo!=GL_NO_ERROR) { const char* error = (char*)gluErrorString(errorNo); - if (error) osg::notify(WARN)<<"Warning: detected OpenGL error '" << error; - else osg::notify(WARN)<<"Warning: detected OpenGL error '" << errorNo; + if (error) osg::notify(WARN)<<"Warning: detected OpenGL error '" << error<<"'"; + else osg::notify(WARN)<<"Warning: detected OpenGL error number 0x" << std::hex << errorNo; - if (str) osg::notify(WARN)<<"' at "<className()<<" "<className()<<" "<className()<<" "<