summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp11
-rw-r--r--src/actions/actions.h1
2 files changed, 12 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
diff --git a/src/actions/actions.h b/src/actions/actions.h
index 175e2d530..4f8affb95 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -75,6 +75,7 @@ namespace Actions
decHandler(dumpGraphics);
decHandler(dumpEnvironment);
decHandler(dumpTests);
+ decHandler(dumpOGL);
} // namespace Actions
#undef decHandler