Fix nodetest autotest.
authorGunnar Sletta <gunnar.sletta@jollamobile.com>
Thu, 9 Jan 2014 08:18:44 +0000 (09:18 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 15 Jan 2014 07:37:16 +0000 (08:37 +0100)
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
tests/auto/quick/nodes/tst_nodestest.cpp

index d07fd71..7c84cdb 100644 (file)
@@ -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;