aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp')
-rw-r--r--tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp b/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
index 92b7196919..6cfe43fd9f 100644
--- a/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
+++ b/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
@@ -102,6 +102,7 @@ void tst_QQuickItemLayer::initTestCase()
{
QQmlDataTest::initTestCase();
QWindow window;
+#ifndef QT_NO_OPENGL
QOpenGLContext context;
window.setSurfaceType(QWindow::OpenGLSurface);
window.create();
@@ -129,6 +130,9 @@ void tst_QQuickItemLayer::initTestCase()
m_mesaVersion = QT_VERSION_CHECK(major, minor, patch);
}
}
+#else
+ window.create();
+#endif
}
// The test draws a red and a blue box next to each other and tests that the