diff options
author | Tuomo Pelkonen <tuomo.pelkonen@gmail.com> | 2021-01-20 14:15:36 +0200 |
---|---|---|
committer | Tuomo Pelkonen <tuomo.pelkonen@gmail.com> | 2021-01-27 10:06:52 +0200 |
commit | 18a562554e9050f0d8b4896237dc0fb306f6a704 (patch) | |
tree | 9585dc9c0c53d417de06104f6d3d661628541a20 /tests | |
parent | df33d053c1188b4be1e3ebd3b5114d28c602d692 (diff) |
Force OpenGL backend for RHI
Set QSG_RHI_BACKEND environment variable to "opengl" to force
RHI to use OpenGL backend.
Change-Id: Ie1fa0ffe466f97b1bbcc5281c49bbdf6e6d053c0
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/barstest/main.cpp | 1 | ||||
-rw-r--r-- | tests/manual/directional/main.cpp | 1 | ||||
-rw-r--r-- | tests/manual/itemmodeltest/main.cpp | 1 | ||||
-rw-r--r-- | tests/manual/multigraphs/main.cpp | 1 | ||||
-rw-r--r-- | tests/manual/qmldynamicdata/main.cpp | 1 | ||||
-rw-r--r-- | tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml | 2 | ||||
-rw-r--r-- | tests/manual/qmlmultitest/main.cpp | 1 | ||||
-rw-r--r-- | tests/manual/qmlmultitest/qml/qmlmultitest/main.qml | 2 | ||||
-rw-r--r-- | tests/manual/qmlperf/main.cpp | 1 | ||||
-rw-r--r-- | tests/manual/qmlperf/qml/qmlperf/main.qml | 2 | ||||
-rw-r--r-- | tests/manual/qmlvolume/main.cpp | 1 | ||||
-rw-r--r-- | tests/manual/qmlvolume/qml/qmlvolume/main.qml | 2 | ||||
-rw-r--r-- | tests/manual/scattertest/main.cpp | 1 | ||||
-rw-r--r-- | tests/manual/surfacetest/main.cpp | 1 | ||||
-rw-r--r-- | tests/manual/volumetrictest/main.cpp | 1 |
15 files changed, 15 insertions, 4 deletions
diff --git a/tests/manual/barstest/main.cpp b/tests/manual/barstest/main.cpp index 88c1884f..a0379fd7 100644 --- a/tests/manual/barstest/main.cpp +++ b/tests/manual/barstest/main.cpp @@ -52,6 +52,7 @@ int main(int argc, char **argv) { + qputenv("QSG_RHI_BACKEND", "opengl"); QApplication app(argc, argv); // Test creating custom items before graph is created diff --git a/tests/manual/directional/main.cpp b/tests/manual/directional/main.cpp index a3e7bb8b..06bf137f 100644 --- a/tests/manual/directional/main.cpp +++ b/tests/manual/directional/main.cpp @@ -43,6 +43,7 @@ int main(int argc, char **argv) { + qputenv("QSG_RHI_BACKEND", "opengl"); QApplication app(argc, argv); Q3DScatter *graph = new Q3DScatter(); QWidget *container = QWidget::createWindowContainer(graph); diff --git a/tests/manual/itemmodeltest/main.cpp b/tests/manual/itemmodeltest/main.cpp index 8e98e209..4a32ca3b 100644 --- a/tests/manual/itemmodeltest/main.cpp +++ b/tests/manual/itemmodeltest/main.cpp @@ -249,6 +249,7 @@ void GraphDataGenerator::changeSelectedButtonClicked() int main(int argc, char **argv) { + qputenv("QSG_RHI_BACKEND", "opengl"); QApplication app(argc, argv); Q3DBars *barGraph = new Q3DBars(); Q3DSurface *surfaceGraph = new Q3DSurface(); diff --git a/tests/manual/multigraphs/main.cpp b/tests/manual/multigraphs/main.cpp index a4d4211f..1597a2b9 100644 --- a/tests/manual/multigraphs/main.cpp +++ b/tests/manual/multigraphs/main.cpp @@ -43,6 +43,7 @@ int main(int argc, char **argv) { + qputenv("QSG_RHI_BACKEND", "opengl"); QApplication app(argc, argv); QWidget *widget = new QWidget(); diff --git a/tests/manual/qmldynamicdata/main.cpp b/tests/manual/qmldynamicdata/main.cpp index 3a69ca8f..03bc1a37 100644 --- a/tests/manual/qmldynamicdata/main.cpp +++ b/tests/manual/qmldynamicdata/main.cpp @@ -34,6 +34,7 @@ int main(int argc, char *argv[]) { + qputenv("QSG_RHI_BACKEND", "opengl"); QGuiApplication app(argc, argv); QQuickView viewer; diff --git a/tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml b/tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml index 3c351d29..8b80eaf4 100644 --- a/tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml +++ b/tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml @@ -28,7 +28,7 @@ ****************************************************************************/ import QtQuick -import QtDataVisualization +import QtDataVisualization 1.2 import QtQuick.Controls import "." diff --git a/tests/manual/qmlmultitest/main.cpp b/tests/manual/qmlmultitest/main.cpp index e6010697..41763539 100644 --- a/tests/manual/qmlmultitest/main.cpp +++ b/tests/manual/qmlmultitest/main.cpp @@ -34,6 +34,7 @@ int main(int argc, char *argv[]) { + qputenv("QSG_RHI_BACKEND", "opengl"); QGuiApplication app(argc, argv); QQuickView viewer; diff --git a/tests/manual/qmlmultitest/qml/qmlmultitest/main.qml b/tests/manual/qmlmultitest/qml/qmlmultitest/main.qml index bf0fb624..986da852 100644 --- a/tests/manual/qmlmultitest/qml/qmlmultitest/main.qml +++ b/tests/manual/qmlmultitest/qml/qmlmultitest/main.qml @@ -30,7 +30,7 @@ import QtQuick import QtQuick.Layouts import QtQuick.Controls -import QtDataVisualization +import QtDataVisualization 1.2 import "." Rectangle { diff --git a/tests/manual/qmlperf/main.cpp b/tests/manual/qmlperf/main.cpp index 27a9fb3a..91ac214b 100644 --- a/tests/manual/qmlperf/main.cpp +++ b/tests/manual/qmlperf/main.cpp @@ -37,6 +37,7 @@ int main(int argc, char *argv[]) { + qputenv("QSG_RHI_BACKEND", "opengl"); QGuiApplication app(argc, argv); QQuickView viewer; diff --git a/tests/manual/qmlperf/qml/qmlperf/main.qml b/tests/manual/qmlperf/qml/qmlperf/main.qml index e17c4c02..84ad4a71 100644 --- a/tests/manual/qmlperf/qml/qmlperf/main.qml +++ b/tests/manual/qmlperf/qml/qmlperf/main.qml @@ -30,7 +30,7 @@ import QtQuick import QtQuick.Layouts import QtQuick.Controls -import QtDataVisualization +import QtDataVisualization 1.2 import "." Rectangle { diff --git a/tests/manual/qmlvolume/main.cpp b/tests/manual/qmlvolume/main.cpp index ac69d4f1..fc14a3a1 100644 --- a/tests/manual/qmlvolume/main.cpp +++ b/tests/manual/qmlvolume/main.cpp @@ -39,6 +39,7 @@ int main(int argc, char *argv[]) { + qputenv("QSG_RHI_BACKEND", "opengl"); QGuiApplication app(argc, argv); QQuickView viewer; diff --git a/tests/manual/qmlvolume/qml/qmlvolume/main.qml b/tests/manual/qmlvolume/qml/qmlvolume/main.qml index 52e8868b..37fb3db3 100644 --- a/tests/manual/qmlvolume/qml/qmlvolume/main.qml +++ b/tests/manual/qmlvolume/qml/qmlvolume/main.qml @@ -30,7 +30,7 @@ import QtQuick import QtQuick.Layouts import QtQuick.Controls -import QtDataVisualization +import QtDataVisualization 1.2 import "." Item { diff --git a/tests/manual/scattertest/main.cpp b/tests/manual/scattertest/main.cpp index d7e349bc..1f872c4d 100644 --- a/tests/manual/scattertest/main.cpp +++ b/tests/manual/scattertest/main.cpp @@ -46,6 +46,7 @@ int main(int argc, char **argv) { + qputenv("QSG_RHI_BACKEND", "opengl"); QApplication app(argc, argv); //QCoreApplication::setAttribute(Qt::AA_UseOpenGLES); diff --git a/tests/manual/surfacetest/main.cpp b/tests/manual/surfacetest/main.cpp index 2a638f0f..ed22420c 100644 --- a/tests/manual/surfacetest/main.cpp +++ b/tests/manual/surfacetest/main.cpp @@ -51,6 +51,7 @@ const int initialTheme = 4; int main(int argc, char *argv[]) { + qputenv("QSG_RHI_BACKEND", "opengl"); QApplication app(argc, argv); QWidget *widget = new QWidget; diff --git a/tests/manual/volumetrictest/main.cpp b/tests/manual/volumetrictest/main.cpp index 412de874..a3fb999e 100644 --- a/tests/manual/volumetrictest/main.cpp +++ b/tests/manual/volumetrictest/main.cpp @@ -41,6 +41,7 @@ int main(int argc, char **argv) { + qputenv("QSG_RHI_BACKEND", "opengl"); QApplication app(argc, argv); //Q3DScatter *graph = new Q3DScatter(); //Q3DSurface *graph = new Q3DSurface(); |