From 7c87b2ac8e01307e603bd85420f8d10724a296e6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Aug 2014 12:32:16 +0300 Subject: Move chat command /dumpgl into actions. --- src/actions/actions.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/actions/actions.cpp') diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 6d62f9770..9f3259c09 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -25,6 +25,7 @@ #include "dropshortcut.h" #include "emoteshortcut.h" #include "game.h" +#include "graphicsmanager.h" #include "guild.h" #include "itemshortcut.h" #include "soundmanager.h" @@ -971,4 +972,18 @@ impHandler0(dumpOGL) return true; } +#ifdef USE_OPENGL +impHandler(dumpGL) +{ + std::string str = graphicsManager.getGLVersion(); + outStringNormal(event.tab, str, str); + return true; +} +#else +impHandler0(dumpGL) +{ + return true; +} +#endif + } // namespace Actions -- cgit v1.2.3-60-g2f50