diff options
-rw-r--r-- | src/graphicsmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 81296b1cb..b5907d785 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -1272,7 +1272,7 @@ void GraphicsManager::detectVideoSettings() { const Configuration &conf = test->getConfig(); int val = conf.getValueInt("opengl", -1); - if (val >= 0 && val <= 2) + if (val >= 0 && val < static_cast<int>(RENDER_LAST)) { config.setValue("opengl", val); val = conf.getValue("useTextureSampler", -1); |