aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2012-02-15 11:32:02 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-15 13:46:25 +0100
commit5f0013ee76605b9c7ceab168702b57e797b698e0 (patch)
tree9bdf47ba3b81199bcfe234a2346813e888052a9a /tests/auto/qtquick2
parent3c3b9956c6ba18c424027ec77dfcddbe7bac60b9 (diff)
Introduced QQuickCanvas::releaseResources().
This function can be used in certain situations to purge the texture cache and triggers more lazily to take down the scene graph and GL context Change-Id: Icd9360ff50fda0e721ba0f1b520cda678e457a35 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'tests/auto/qtquick2')
-rw-r--r--tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp b/tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp
index eac0d851d5..8f0c4e6fce 100644
--- a/tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp
+++ b/tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp
@@ -685,7 +685,9 @@ void tst_qquickcanvas::headless()
// Hide the canvas and verify signal emittion and GL context deletion
canvas->hide();
- QCOMPARE(invalidated.size(), 1);
+ canvas->releaseResources();
+
+ QTRY_COMPARE(invalidated.size(), 1);
QVERIFY(canvas->openglContext() == 0);
// Destroy the native windowing system buffers