Support threaded OpenGL on linux again.

Broken since 8758f532ae6209bcf9447e27edc4fd412c0f173d.

Change-Id: Ifadf37252cc7c1ca68b0a82320b12833f97bf302
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
This commit is contained in:
Gunnar Sletta 2015-01-07 13:59:05 +01:00 committed by Jørgen Lind
parent cd7532ad7b
commit aa8e8e2e41
2 changed files with 9 additions and 0 deletions

View File

@ -214,4 +214,10 @@ QPlatformOffscreenSurface *QXcbGlxIntegration::createPlatformOffscreenSurface(QO
}
bool QXcbGlxIntegration::supportsThreadedOpenGL() const
{
return QGLXContext::supportsThreading();
}
QT_END_NAMESPACE

View File

@ -60,6 +60,9 @@ public:
QXcbWindow *createWindow(QWindow *window) const Q_DECL_OVERRIDE;
QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const Q_DECL_OVERRIDE;
QPlatformOffscreenSurface *createPlatformOffscreenSurface(QOffscreenSurface *surface) const Q_DECL_OVERRIDE;
virtual bool supportsThreadedOpenGL() const Q_DECL_OVERRIDE;
private:
QXcbConnection *m_connection;
uint32_t m_glx_first_event;