From bf9c889b9ce882ff3ddb357c691942e520b1aa2a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Oct 2013 20:53:21 +0300 Subject: Add command /dumpgl to show OpenGL version string in chat. --- src/commands.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/commands.cpp') 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); -- cgit v1.2.3-60-g2f50