diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-01 14:41:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-01 14:53:49 +0300 |
commit | 222748a7e0c79225c66485898b913aa60f56cfe2 (patch) | |
tree | 38e27f08cec39bf8cca26df8caade81c112245e8 /src/graphicsmanager.cpp | |
parent | f4df2a0fd2d9c01b6f756c4b00ed9848f319a1b0 (diff) | |
download | manaverse-222748a7e0c79225c66485898b913aa60f56cfe2.tar.gz manaverse-222748a7e0c79225c66485898b913aa60f56cfe2.tar.bz2 manaverse-222748a7e0c79225c66485898b913aa60f56cfe2.tar.xz manaverse-222748a7e0c79225c66485898b913aa60f56cfe2.zip |
add way to map render mode selection to actual modes.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index ba0a22d5d..5304c69c5 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -222,11 +222,7 @@ void GraphicsManager::initGraphics(const bool noOpenGL) { RenderType useOpenGL = RENDER_SOFTWARE; if (!noOpenGL) - { - const int mode = config.getIntValue("opengl"); - if (mode < RENDER_LAST && mode >= RENDER_SOFTWARE) - useOpenGL = static_cast<RenderType>(mode); - } + useOpenGL = intToRenderType(config.getIntValue("opengl")); // Setup image loading for the right image format OpenGLImageHelper::setLoadAsOpenGL(useOpenGL); |