summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2019-03-29 16:53:11 +0100
committerHeikki Halmet <heikki.halmet@qt.io>2019-04-01 11:56:52 +0000
commit14109aaccc37df53a0c4b591dddd68b41ec20ec3 (patch)
tree18ac8bdd76137e177979d046c3b4f794105cfa6e /tools
parent2486c31e8823dc8c37f67716c422f38d58ec1ec3 (diff)
add core profile environment variable
Enables 3druntime scenes at macOS without calling it with extra process arguments. Task-number: QDS-553 Change-Id: I04e59f4f9061eb2a567c65406c5a8195b1896836 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlscene/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qmlscene/main.cpp b/tools/qmlscene/main.cpp
index 8b1a679183..83d6ce5d72 100644
--- a/tools/qmlscene/main.cpp
+++ b/tools/qmlscene/main.cpp
@@ -522,7 +522,8 @@ int main(int argc, char ** argv)
options.resizeViewToRootItem = true;
else if (lowerArgument == QLatin1String("--multisample"))
options.multisample = true;
- else if (lowerArgument == QLatin1String("--core-profile"))
+ else if (lowerArgument == QLatin1String("--core-profile")
+ || qEnvironmentVariableIsSet("QMLSCENE_CORE_PROFILE"))
options.coreProfile = true;
else if (lowerArgument == QLatin1String("--verbose"))
options.verbose = true;