From e4400a7a0b45bdd84e6e364e3a1c4f339858f57a Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Tue, 5 May 2020 11:31:15 +0200 Subject: Lancelot: update graphics backend detection Change-Id: I20c19477b04dd99bfa219bf9e2f3d9cd93abdcb5 Reviewed-by: Eirik Aavitsland Reviewed-by: Laszlo Agocs --- tests/manual/scenegraph_lancelot/scenegraph/tst_scenegraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/manual/scenegraph_lancelot') 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)); -- cgit v1.2.3