浏览代码

Use ANGLE by default on Windows

ANGLE is still not always better, but it is certainly infinitely better
than OpenGL as a default. OpenGL tends to cause lots of glitches,
because the interaction with DWM is bad (Microsoft doesn't care about
OpenGL at all).

On the other hand, we're stuck with ANGLE running in GLES 2.0 mode, so
no advanced filtering is available. But it still requires manual
configuration, so having to enable OpenGL mode in the settings isn't
mucn of a disimprovement.
Vincent Lang 9 年之前
父节点
当前提交
e6b46fc7bf
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      resources/settings/settings_description.json
  2. 1 1
      src/main.cpp

+ 1 - 1
resources/settings/settings_description.json

@@ -77,7 +77,7 @@
       {
         "value": "useOpenGL",
         // Warning: the default must be the same as the one in preinitQt().
-        "default": true,
+        "default": false,
         "platforms": [ "windows" ]
       }
     ]

+ 1 - 1
src/main.cpp

@@ -40,7 +40,7 @@ static void preinitQt()
   // Warning: this must be the same as the default value as declared in
   // the settings_description.json file, or confusion will result.
   if (useOpengl.type() != QMetaType::Bool)
-    useOpengl = true;
+    useOpengl = false;
 
   if (useOpengl.toBool())
     QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL);