summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-02 20:53:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-02 20:53:21 +0300
commitbf9c889b9ce882ff3ddb357c691942e520b1aa2a (patch)
treee8d4848666926be24c83b92f0934d018ec03c42e /src/commands.cpp
parent8dcb524443a82506b522344f3d4353769f51883c (diff)
downloadplus-bf9c889b9ce882ff3ddb357c691942e520b1aa2a.tar.gz
plus-bf9c889b9ce882ff3ddb357c691942e520b1aa2a.tar.bz2
plus-bf9c889b9ce882ff3ddb357c691942e520b1aa2a.tar.xz
plus-bf9c889b9ce882ff3ddb357c691942e520b1aa2a.zip
Add command /dumpgl to show OpenGL version string in chat.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 67bf9cf73..788a20b98 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -27,6 +27,7 @@
#include "client.h"
#include "configuration.h"
#include "game.h"
+#include "graphicsmanager.h"
#include "guildmanager.h"
#include "main.h"
#include "party.h"
@@ -1287,6 +1288,18 @@ impHandler0(testsdlfont)
#endif
}
+#ifdef USE_OPENGL
+impHandler2(dumpGL)
+{
+ std::string str = graphicsManager.getGLVersion();
+ outStringNormal(tab, str, str);
+}
+#else
+impHandler0(dumpGL)
+{
+}
+#endif
+
#ifdef DEBUG_DUMP_LEAKS1
void showRes(std::string str, ResourceManager::Resources *res);