xcb: Compilefix #ifdef glx code

Change-Id: I4204cab76b2621318dda909d24ceb2abab6e0ba3
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
bb10
Jørgen Lind 2013-10-30 12:06:17 +01:00 committed by The Qt Project
parent 105e228d1c
commit f1927370cb
1 changed files with 4 additions and 0 deletions

View File

@ -278,7 +278,11 @@ bool QXcbIntegration::hasCapability(QPlatformIntegration::Capability cap) const
#else
case OpenGL: return false;
#endif
#if defined(XCB_USE_GLX)
case ThreadedOpenGL: return m_connections.at(0)->supportsThreadedRendering() && QGLXContext::supportsThreading();
#else
case ThreadedOpenGL: return m_connections.at(0)->supportsThreadedRendering();
#endif
case WindowMasks: return true;
case MultipleWindows: return true;
case ForeignWindows: return true;