diff options
author | Marius Kintel <marius@kintel.net> | 2011-11-26 22:32:50 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-11-26 22:32:50 (GMT) |
commit | 1c1098f8b48e448a767ceedebfa61200151adaec (patch) | |
tree | 755e34f010c2725325c31ca62842a3feb531eb0c /tests/system-gl.cc | |
parent | 47bd0b639b4adf4a20f901bd93ac235e77bd2df4 (diff) |
Minor debug output fixes
Diffstat (limited to 'tests/system-gl.cc')
-rw-r--r-- | tests/system-gl.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/system-gl.cc b/tests/system-gl.cc index f95a5ca..bdf3bf9 100644 --- a/tests/system-gl.cc +++ b/tests/system-gl.cc @@ -8,13 +8,13 @@ using namespace std; using namespace boost; -void glew_dump() { +void glew_dump(bool dumpall) { +#ifdef DEBUG cerr << "GLEW version: " << glewGetString(GLEW_VERSION) << endl << "Renderer: " << (const char *)glGetString(GL_RENDERER) << endl << "Vendor: " << (const char *)glGetString(GL_VENDOR) << endl << "OpenGL version: " << (const char *)glGetString(GL_VERSION) << endl; - bool dumpall = false; if (dumpall) { string extensions((const char *)glGetString(GL_EXTENSIONS)); replace_all( extensions, " ", "\n " ); @@ -30,6 +30,7 @@ void glew_dump() { << " GL_EXT_packed_depth_stencil: " << (glewIsSupported("GL_EXT_packed_depth_stencil") ? "yes" : "no") << endl; +#endif }; bool report_glerror(const char * function) |