diff options
author | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-06-22 10:51:00 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-07-02 10:24:47 (GMT) |
commit | 38922774119817f4bf1595b9651f914e5c3d9f02 (patch) | |
tree | 55870e86a85c95d22b2115c89d49343dd0767fbc /src/gui/image/qpixmap.cpp | |
parent | 9f72c297843459ab22eeb3af048baa9037aa9634 (diff) | |
download | Qt-38922774119817f4bf1595b9651f914e5c3d9f02.zip Qt-38922774119817f4bf1595b9651f914e5c3d9f02.tar.gz Qt-38922774119817f4bf1595b9651f914e5c3d9f02.tar.bz2 |
More work on GL threading.
Removed QObject inheritance from QGLEngineSharedShaders and
made it thread-local, so that paintengines in different threads
can use programs without clashing.
Lifted some restrictions on QPixmap so that they may be used in
threads when the GL2 engine is active. Made the QGLContextGroup
a part of the pixmap and image cache keys.
Diffstat (limited to 'src/gui/image/qpixmap.cpp')
-rw-r--r-- | src/gui/image/qpixmap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qpixmap.cpp b/src/gui/image/qpixmap.cpp index 20e4b50..e630e80 100644 --- a/src/gui/image/qpixmap.cpp +++ b/src/gui/image/qpixmap.cpp @@ -94,6 +94,7 @@ Q_GUI_EXPORT qint64 qt_pixmap_id(const QPixmap &pixmap) static bool qt_pixmap_thread_test() { + return true; if (!qApp) { qFatal("QPixmap: Must construct a QApplication before a QPaintDevice"); return false; |