diff options
author | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-08-24 11:53:49 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-08-24 12:41:23 (GMT) |
commit | 3ba16e3923003a7919eb157ae3375792b714484e (patch) | |
tree | e368e460a938124a5d2047344bb8a84b5035a205 /qmake/property.cpp | |
parent | d959edb97e039c6dbe3c3f11ddfea47ff7ff420f (diff) | |
download | Qt-3ba16e3923003a7919eb157ae3375792b714484e.zip Qt-3ba16e3923003a7919eb157ae3375792b714484e.tar.gz Qt-3ba16e3923003a7919eb157ae3375792b714484e.tar.bz2 |
Call eglReleaseThread() when a thread exits, and fix warnings.
In Qt we track the current context in a thread via a QThreadStorage.
The thread storage contents are deleted in the thread context, just
before it's destroyed. This means we can safely call eglReleaseThread()
in the QGLThreadContext destructor. We can then get rid of unnecessary
context swaps, since we don't need to take care to reset a thread
context back to 0 after having used e.g. the QGLShareContextScope
mechanism, which is good.
Reviewed-by: Samuel
Diffstat (limited to 'qmake/property.cpp')
0 files changed, 0 insertions, 0 deletions