diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2012-02-15 11:32:02 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-15 13:46:25 +0100 |
commit | 5f0013ee76605b9c7ceab168702b57e797b698e0 (patch) | |
tree | 9bdf47ba3b81199bcfe234a2346813e888052a9a /tests/auto/qtquick2/qquickcanvas | |
parent | 3c3b9956c6ba18c424027ec77dfcddbe7bac60b9 (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/qquickcanvas')
-rw-r--r-- | tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp | 4 |
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 |