diff options
author | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2014-01-09 09:18:44 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-15 08:37:16 +0100 |
commit | 51f4f6f0c376607543cf046fb27b199aecac0912 (patch) | |
tree | ec110f12069822c858b39d3f6f92f8f4bfaadd3d /tests/auto | |
parent | e2c8ef1544008c36fa6dde1a1d97b46de388386a (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/auto')
-rw-r--r-- | tests/auto/quick/nodes/tst_nodestest.cpp | 4 |
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. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage @@ -97,6 +97,8 @@ void NodesTest::initTestCase() void NodesTest::cleanupTestCase() { + renderContext->invalidate(); + delete renderContext; context->doneCurrent(); delete context; delete surface; |