summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-27 02:33:48 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-27 02:33:48 +0300
commiteade4818db87cc41e4c014688e5ee0d15ede6912 (patch)
tree422a84ea0dc5444fad986a75b6c783f83a111aec /src/actions/actions.cpp
parent1b27066e2d98c82b0bf135188ebb57e16af669df (diff)
downloadmanaverse-eade4818db87cc41e4c014688e5ee0d15ede6912.tar.gz
manaverse-eade4818db87cc41e4c014688e5ee0d15ede6912.tar.bz2
manaverse-eade4818db87cc41e4c014688e5ee0d15ede6912.tar.xz
manaverse-eade4818db87cc41e4c014688e5ee0d15ede6912.zip
Move chat command /dumpogl into actions.
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 343caedf7..6d62f9770 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -73,6 +73,9 @@
#include "gui/widgets/tabs/chattabtype.h"
#include "render/graphics.h"
+#if defined USE_OPENGL
+#include "render/normalopenglgraphics.h"
+#endif
#include "net/beinghandler.h"
#include "net/chathandler.h"
@@ -960,4 +963,12 @@ impHandler(dumpTests)
return true;
}
+impHandler0(dumpOGL)
+{
+#if defined USE_OPENGL && !defined ANDROID
+ NormalOpenGLGraphics::dumpSettings();
+#endif
+ return true;
+}
+
} // namespace Actions