diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-02 01:45:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-02 01:45:23 +0300 |
commit | 13d827728ad47f6362258175ac1706ceb6bb8b8d (patch) | |
tree | bb8d175a03c8ec671737f247f4979e1921f4672c /src/openglgraphics.cpp | |
parent | 490862919d79369112c75955a9c36ff8a081efd3 (diff) | |
download | manaverse-13d827728ad47f6362258175ac1706ceb6bb8b8d.tar.gz manaverse-13d827728ad47f6362258175ac1706ceb6bb8b8d.tar.bz2 manaverse-13d827728ad47f6362258175ac1706ceb6bb8b8d.tar.xz manaverse-13d827728ad47f6362258175ac1706ceb6bb8b8d.zip |
Add opengl settings dump command.
Chat command: /dumpogl
Diffstat (limited to 'src/openglgraphics.cpp')
-rw-r--r-- | src/openglgraphics.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
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 |