From 11e788c9a555694f3ec5c4839eb98c4048801bf2 Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Mon, 25 Apr 2016 12:09:44 +0200 Subject: Get tests building when QT_NO_OPENGL is defined Change-Id: I36f9e5e916b59657990d7613850ba76d2489a21e Reviewed-by: Laszlo Agocs --- tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp') 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 -- cgit v1.2.3