summaryrefslogtreecommitdiff
path: root/tests/system-gl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system-gl.cc')
-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 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)
contact: Jan Huwald // Impressum