diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-08-25 20:19:44 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2011-08-26 09:19:09 +0200 |
commit | 5a23825f017ddebea698f6f81a36bd7ff7edadc1 (patch) | |
tree | 7b531ef0874911ec6bef4084acbb16b3e3b9ca8b /src/plugins/platforms/windows | |
parent | 794c81c1eab54cb58f2143ab3efc90e9c4bf9092 (diff) |
Introduce new platform capability ThreadedOpenGL.
Lets the platform plugin advertise whether it's safe to use OpenGL from
a different thread. With XCB we only advertise this if we have a
reasonably new XCB libary, as older versions suffer from the
xcb_wait_for_reply() blocking bug, which cause GL rendering in a
separate to stall when using Mesa drivers.
Change-Id: I4829df7e583a1c8aed218ae13a159d21266cc594
Reviewed-on: http://codereview.qt.nokia.com/3613
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/plugins/platforms/windows')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsintegration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsintegration.cpp b/src/plugins/platforms/windows/qwindowsintegration.cpp index 70c6c0b4db..fdcc05abe0 100644 --- a/src/plugins/platforms/windows/qwindowsintegration.cpp +++ b/src/plugins/platforms/windows/qwindowsintegration.cpp @@ -167,6 +167,10 @@ bool QWindowsIntegration::hasCapability(QPlatformIntegration::Capability cap) co switch (cap) { case ThreadedPixmaps: return true; + case OpenGL: + return true; + case ThreadedOpenGL: + return true; default: return QPlatformIntegration::hasCapability(cap); } |