aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickitemlayer
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-02-24 17:36:04 +0100
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-02-24 17:36:04 +0100
commitad67ec26d0cbc98e3440dd38bb20eef4da2ee96d (patch)
tree9f8135751df2f995a4f55837ea065a4687245b71 /tests/auto/quick/qquickitemlayer
parent83a16630c13969e68cd3a5aaab73335ccb0d4414 (diff)
parent20d160d0513a04be187ed851a25b029f47c27b27 (diff)
Merge remote-tracking branch 'origin/5.4' into 5.5
Conflicts: .qmake.conf LICENSE.GPLv2 examples/qml/networkaccessmanagerfactory/view.qml src/qml/jsruntime/qv4runtime.cpp src/qml/jsruntime/qv4stringobject.cpp Change-Id: I5d12f436d60995e51d5c2f59d364e9cbc24f8e32
Diffstat (limited to 'tests/auto/quick/qquickitemlayer')
-rw-r--r--tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp b/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
index 48be97c7ba..25a75c0580 100644
--- a/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
+++ b/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
@@ -62,6 +62,7 @@ public:
}
private slots:
+ void initTestCase() Q_DECL_OVERRIDE;
void layerEnabled();
void layerSmooth();
void layerMipmap();
@@ -92,14 +93,20 @@ private:
};
tst_QQuickItemLayer::tst_QQuickItemLayer()
- : m_mesaVersion(0)
+ : m_isMesaSoftwareRasterizer(false)
+ , m_mesaVersion(0)
{
+}
+
+void tst_QQuickItemLayer::initTestCase()
+{
+ QQmlDataTest::initTestCase();
QWindow window;
QOpenGLContext context;
window.setSurfaceType(QWindow::OpenGLSurface);
window.create();
- context.create();
- context.makeCurrent(&window);
+ QVERIFY(context.create());
+ QVERIFY(context.makeCurrent(&window));
const char *vendor = (const char *)context.functions()->glGetString(GL_VENDOR);
const char *renderer = (const char *)context.functions()->glGetString(GL_RENDERER);
m_isMesaSoftwareRasterizer = strcmp(vendor, "Mesa Project") == 0