summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-01 14:41:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-01 14:53:49 +0300
commit222748a7e0c79225c66485898b913aa60f56cfe2 (patch)
tree38e27f08cec39bf8cca26df8caade81c112245e8 /src/graphicsmanager.cpp
parentf4df2a0fd2d9c01b6f756c4b00ed9848f319a1b0 (diff)
downloadmv-222748a7e0c79225c66485898b913aa60f56cfe2.tar.gz
mv-222748a7e0c79225c66485898b913aa60f56cfe2.tar.bz2
mv-222748a7e0c79225c66485898b913aa60f56cfe2.tar.xz
mv-222748a7e0c79225c66485898b913aa60f56cfe2.zip
add way to map render mode selection to actual modes.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp6
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);