From 0a602e0b62ee764cc1c1befdc75f2f4b875adc43 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Jul 2014 01:45:42 +0300 Subject: Fix best renderer detection at first start. It was broken if best mode is modern OpenGL. --- src/graphicsmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/graphicsmanager.cpp') 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(RENDER_LAST)) { config.setValue("opengl", val); val = conf.getValue("useTextureSampler", -1); -- cgit v1.2.3-60-g2f50