From 13d827728ad47f6362258175ac1706ceb6bb8b8d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 2 Mar 2012 01:45:23 +0300 Subject: Add opengl settings dump command. Chat command: /dumpogl --- src/openglgraphics.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/openglgraphics.cpp') diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp index d972a738f..14d525163 100644 --- a/src/openglgraphics.cpp +++ b/src/openglgraphics.cpp @@ -1351,4 +1351,24 @@ inline void OpenGLGraphics::drawLineArrayf(int size) glDrawArrays(GL_LINES, 0, size / 2); } +void OpenGLGraphics::dumpSettings() +{ + GLint test[1000]; + logger->log("\n\n"); + logger->log("start opengl dump"); + for (int f = 0; f < 65535; f ++) + { + test[0] = 0; + test[1] = 0; + test[2] = 0; + test[3] = 0; + glGetIntegerv(f, &test[0]); + if (test[0] || test[1] || test[2] || test[3]) + { + logger->log("%d = %d, %d, %d, %d", f, test[0], test[1], test[2], test[3]); + } + } + logger->log("end opengl dump\n\n"); +} + #endif // USE_OPENGL -- cgit v1.2.3-60-g2f50