summaryrefslogtreecommitdiffstats
path: root/src/gui/configure.json
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2019-01-25 10:39:16 +0100
committerOliver Wolff <oliver.wolff@qt.io>2019-02-08 13:20:07 +0000
commit30178a22ffde5d216a350910668df0d906aced3b (patch)
tree01679644b2df42f4c6dd56ce0c6064e4fbfb37c7 /src/gui/configure.json
parentc1f4286a5cbc1794fe7be5bdbbd6a0bf29ef84d4 (diff)
Windows configure: Make dynamic opengl the default option
Most people expect dynamic opengl the default, when configuring Qt on Windows and are not too happy if they have to reconfigure and rebuild when they they find out, that the default is ANGLE. Dynamic OpenGL is the way to go as the user can easily decide what to use by setting the QT_OPENGL environment variable. Besides that, our packages are built using dynamic OpenGL on Windows [ChangeLog][configure] The default OpenGL configuration changed from ANGLE to dynamic OpenGL. Change-Id: Ia5688249e6d0a4d3ebe8cbe22e02fe290d9f0a4c Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/gui/configure.json')
-rw-r--r--src/gui/configure.json10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/configure.json b/src/gui/configure.json
index 70d0817791..51d89973ed 100644
--- a/src/gui/configure.json
+++ b/src/gui/configure.json
@@ -1105,7 +1105,7 @@
"angle": {
"label": "ANGLE",
"autoDetect": "features.opengles2 || features.opengl-dynamic",
- "condition": "features.dxguid && tests.fxc && (features.direct3d9 || (config.winrt && features.direct3d11 && libs.d3dcompiler))",
+ "condition": "!features.opengl-desktop && features.dxguid && tests.fxc && (features.direct3d9 || (config.winrt && features.direct3d11 && libs.d3dcompiler))",
"output": [
"publicFeature",
{ "type": "define", "name": "QT_OPENGL_ES_2_ANGLE" },
@@ -1308,9 +1308,9 @@
},
"opengles2": {
"label": "OpenGL ES 2.0",
- "enable": "input.opengl == 'es2'",
+ "enable": "input.opengl == 'es2' || input.angle == 'yes'",
"disable": "input.opengl == 'desktop' || input.opengl == 'dynamic' || input.opengl == 'no'",
- "condition": "config.win32 || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)",
+ "condition": "(config.win32 && !features.opengl-dynamic) || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)",
"output": [
"publicFeature",
"publicQtConfig",
@@ -1344,6 +1344,7 @@
},
"opengl-desktop": {
"label": "Desktop OpenGL",
+ "autoDetect": "!config.win32",
"enable": "input.opengl == 'desktop'",
"disable": "input.opengl == 'es2' || input.opengl == 'dynamic' || input.opengl == 'no'",
"condition": "(config.win32 && !config.winrt && !features.opengles2 && (config.msvc || libs.opengl))
@@ -1351,8 +1352,7 @@
},
"opengl-dynamic": {
"label": "Dynamic OpenGL",
- "enable": "input.opengl == 'dynamic'",
- "autoDetect": false,
+ "disable": "input.angle == 'yes' || input.opengl == 'no' || input.opengl == 'desktop'",
"condition": "config.win32 && !config.winrt",
"output": [
{ "type": "publicFeature", "name": "dynamicgl" },