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:
parent
cd7532ad7b
commit
aa8e8e2e41
@ -214,4 +214,10 @@ QPlatformOffscreenSurface *QXcbGlxIntegration::createPlatformOffscreenSurface(QO
|
||||
|
||||
}
|
||||
|
||||
bool QXcbGlxIntegration::supportsThreadedOpenGL() const
|
||||
{
|
||||
return QGLXContext::supportsThreading();
|
||||
}
|
||||
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user