summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-02 01:45:23 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-02 01:45:23 +0300
commit13d827728ad47f6362258175ac1706ceb6bb8b8d (patch)
treebb8d175a03c8ec671737f247f4979e1921f4672c /src/commandhandler.cpp
parent490862919d79369112c75955a9c36ff8a081efd3 (diff)
downloadplus-13d827728ad47f6362258175ac1706ceb6bb8b8d.tar.gz
plus-13d827728ad47f6362258175ac1706ceb6bb8b8d.tar.bz2
plus-13d827728ad47f6362258175ac1706ceb6bb8b8d.tar.xz
plus-13d827728ad47f6362258175ac1706ceb6bb8b8d.zip
Add opengl settings dump command.
Chat command: /dumpogl
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index 9f832c021..67b03e78c 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -57,6 +57,10 @@
#include "net/playerhandler.h"
#include "net/tradehandler.h"
+#if defined USE_OPENGL
+#include "openglgraphics.h"
+#endif
+
#ifdef DEBUG_DUMP_LEAKS
#include "resources/image.h"
#include "resources/resource.h"
@@ -207,6 +211,8 @@ void CommandHandler::handleCommand(const std::string &command, ChatTab *tab)
handleDumpGraphics(args, tab);
else if (type == "dumpt")
handleDumpTests(args, tab);
+ else if (type == "dumpogl")
+ handleDumpOGL(args, tab);
else if (tab->handleCommand(type, args))
;
else if (type == "hack")
@@ -1347,3 +1353,11 @@ void CommandHandler::replaceVars(std::string &str)
}
}
}
+
+void CommandHandler::handleDumpOGL(const std::string &args A_UNUSED,
+ ChatTab *tab A_UNUSED)
+{
+#if defined USE_OPENGL
+ OpenGLGraphics::dumpSettings();
+#endif
+}