diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-10 16:46:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-10 16:46:55 +0300 |
commit | 608dfae22e1b5145210314ca6c7268420dd639c8 (patch) | |
tree | 5f7317be7e895a1f8aede182ea69ef56d456c54f /src/configmanager.cpp | |
parent | 9eb389060d44672c311a36348036eab297859e7e (diff) | |
download | plus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.gz plus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.bz2 plus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.xz plus-608dfae22e1b5145210314ca6c7268420dd639c8.zip |
Fix some issues found by automatic checks.
Diffstat (limited to 'src/configmanager.cpp')
-rw-r--r-- | src/configmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configmanager.cpp b/src/configmanager.cpp index 9f67ad2c5..8358aa995 100644 --- a/src/configmanager.cpp +++ b/src/configmanager.cpp @@ -263,7 +263,7 @@ void ConfigManager::storeSafeParameters() enableMumble = config.getBoolValue("enableMumble"); enableMapReduce = config.getBoolValue("enableMapReduce"); - if (!settings.options.safeMode && !tmpOpengl) + if (!settings.options.safeMode && tmpOpengl == RenderType::RENDER_SOFTWARE) { // if video mode configured reset most settings to safe config.setValue("hwaccel", false); @@ -306,7 +306,7 @@ void ConfigManager::storeSafeParameters() } config.setValue("safemode", false); - if (!tmpOpengl) + if (tmpOpengl == RenderType::RENDER_SOFTWARE) { config.setValue("hwaccel", tmpHwaccel); config.setValue("opengl", CAST_S32(tmpOpengl)); |