path: root/tests
diff options
authorGunnar Sletta <gunnar.sletta@jollamobile.com>2014-01-09 09:18:44 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-15 08:37:16 +0100
commit51f4f6f0c376607543cf046fb27b199aecac0912 (patch)
treeec110f12069822c858b39d3f6f92f8f4bfaadd3d /tests
parente2c8ef1544008c36fa6dde1a1d97b46de388386a (diff)
Fix nodetest autotest.
GL context was initialized with the wrong surface format resulting in warnings, and we did not clean up the render context properly. Change-Id: I19f748ca985a0becf1f7a6caa987f21567029cfd Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com> Reviewed-by: Alex Montgomery
Diffstat (limited to 'tests')
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/quick/nodes/tst_nodestest.cpp b/tests/auto/quick/nodes/tst_nodestest.cpp
index d07fd7177d..7c84cdb5cf 100644
--- a/tests/auto/quick/nodes/tst_nodestest.cpp
+++ b/tests/auto/quick/nodes/tst_nodestest.cpp
@@ -3,7 +3,7 @@
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
-** This file is part of the Qt scene graph research project.
+** This file is part of the test suite of the Qt toolkit.
** Commercial License Usage
@@ -97,6 +97,8 @@ void NodesTest::initTestCase()
void NodesTest::cleanupTestCase()
+ renderContext->invalidate();
+ delete renderContext;
delete context;
delete surface;