diff options
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); |