diff options
author | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-04-16 09:38:20 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-07-02 10:24:59 (GMT) |
commit | 4c3ac765b26e56fbf08c9f70cf43aa00a6565cae (patch) | |
tree | 20d12784bb7ef1e402b0d57f59d7820ca45672c0 /src/opengl/qgl_p.h | |
parent | 7e464e38009f2492a41e9972a75f868cf88d353a (diff) | |
download | Qt-4c3ac765b26e56fbf08c9f70cf43aa00a6565cae.zip Qt-4c3ac765b26e56fbf08c9f70cf43aa00a6565cae.tar.gz Qt-4c3ac765b26e56fbf08c9f70cf43aa00a6565cae.tar.bz2 |
Don't use the QGLSignalProxy to clean up the thread-local shaders.
After much back and forth I think we can use this approach for cleaning
up thread-local, shared resources. Main problem has been dealing with
dangling pointers and references, but they should be solved now.
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r-- | src/opengl/qgl_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h index 9b862eb..d5083e9 100644 --- a/src/opengl/qgl_p.h +++ b/src/opengl/qgl_p.h @@ -624,6 +624,8 @@ public: void *value(const QGLContext *key); // Cleanup 'value' in response to a context group being destroyed. void cleanup(const QGLContext *ctx, void *value); + // Remove this resource from the group's resource list. + void remove(const QGLContext *ctx); private: FreeFunc free; QAtomicInt active; |