diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2011-03-01 09:06:31 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-03-01 09:06:31 (GMT) |
commit | 93e0fc1476757331d25b9fe2d357e930eda55331 (patch) | |
tree | dccd8f7dc0428af62f51d7d948eb2d3390bd4468 /src/plugins/platforms/xcb/qxcbintegration.cpp | |
parent | 7629130b24c01d406f5dee8e6600538db666cfa8 (diff) | |
download | Qt-93e0fc1476757331d25b9fe2d357e930eda55331.zip Qt-93e0fc1476757331d25b9fe2d357e930eda55331.tar.gz Qt-93e0fc1476757331d25b9fe2d357e930eda55331.tar.bz2 |
Lighthouse: Xcb. implement dri2 context handling
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbintegration.cpp')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbintegration.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/platforms/xcb/qxcbintegration.cpp b/src/plugins/platforms/xcb/qxcbintegration.cpp index 6dc5a5c..7f6d4c5 100644 --- a/src/plugins/platforms/xcb/qxcbintegration.cpp +++ b/src/plugins/platforms/xcb/qxcbintegration.cpp @@ -136,7 +136,12 @@ bool QXcbIntegration::hasOpenGL() const wasEglInitialized = eglInitialize(disp,&major,&minor); } return wasEglInitialized; -#else - return false; +#elif defined(XCB_USE_DRI2) + if (m_connection->hasSupportForDri2()) { + return true; + } #endif + return false; +} + } |