diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-08-29 12:45:39 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-09-01 07:44:01 +0200 |
commit | a3b026475483f9377248b2a00e55da28d17258d1 (patch) | |
tree | 33f458aa3a65b09e3d87f71953fd355381fd4983 /src/gui/kernel/qopenglcontext_p.h | |
parent | 9cdf9973c60f6974fe9b405b10ef9cffef7ae4f2 (diff) |
Clean up shared resources immediately as the last context is destroyed.
By not waiting until deleteLater() kicks in it's easier to auto-test. We
can now add a test case for what happens when a shared resource is still
valid while the last context is destroyed.
Change-Id: I72963928e6a921e49ed59a79e2579b497ba37ccf
Reviewed-on: http://codereview.qt.nokia.com/3732
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/gui/kernel/qopenglcontext_p.h')
-rw-r--r-- | src/gui/kernel/qopenglcontext_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qopenglcontext_p.h b/src/gui/kernel/qopenglcontext_p.h index 88738bc950..bfe0f9dedf 100644 --- a/src/gui/kernel/qopenglcontext_p.h +++ b/src/gui/kernel/qopenglcontext_p.h @@ -124,6 +124,8 @@ public: void addContext(QOpenGLContext *ctx); void removeContext(QOpenGLContext *ctx); + void cleanup(); + void deletePendingResources(QOpenGLContext *ctx); QOpenGLContext *m_context; |