diff options
author | Paul Olav Tvete <paul.tvete@qt.io> | 2020-05-05 11:31:15 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@qt.io> | 2020-05-11 21:42:14 +0200 |
commit | e4400a7a0b45bdd84e6e364e3a1c4f339858f57a (patch) | |
tree | 17feb41b3119a5e03e3bc7e8776b8be0447215a1 /tests/manual/scenegraph_lancelot/scenegraph/tst_scenegraph.cpp | |
parent | 6b45520db643535b03262344ed77f05920eee14c (diff) | |
download | qtdeclarative-e4400a7a0b45bdd84e6e364e3a1c4f339858f57a.tar.gz |
Lancelot: update graphics backend detection
Change-Id: I20c19477b04dd99bfa219bf9e2f3d9cd93abdcb5
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'tests/manual/scenegraph_lancelot/scenegraph/tst_scenegraph.cpp')
-rw-r--r-- | tests/manual/scenegraph_lancelot/scenegraph/tst_scenegraph.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/manual/scenegraph_lancelot/scenegraph/tst_scenegraph.cpp b/tests/manual/scenegraph_lancelot/scenegraph/tst_scenegraph.cpp index a65bde1002..dfb4b47a3b 100644 --- a/tests/manual/scenegraph_lancelot/scenegraph/tst_scenegraph.cpp +++ b/tests/manual/scenegraph_lancelot/scenegraph/tst_scenegraph.cpp @@ -1,3 +1,4 @@ + /**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. @@ -113,7 +114,7 @@ void tst_Scenegraph::initTestCase() #else const char *defaultRhiBackend = "opengl"; #endif - usingRhi = qEnvironmentVariableIntValue("QSG_RHI") != 0; + usingRhi = !qEnvironmentVariableIsSet("QSG_NO_RHI"); QString stack; if (usingRhi) { const QString rhiBackend = qEnvironmentVariable("QSG_RHI_BACKEND", QString::fromLatin1(defaultRhiBackend)); |