diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-05-18 13:21:47 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-05-19 10:15:18 +0200 |
commit | 63a88d0d26eff44549be233518c8005356139f7a (patch) | |
tree | d1dfe4f8029e8b644c6fc84a8b5d0cae7dfd1a4e /src/plugins/platforms/xcb/gl_integrations/xcb_glx | |
parent | dddd0c3ad80b08e4e7775095e51995f360b5e336 (diff) |
Allow multithreaded opengl to be disabled
Pick-to: 5.15
Change-Id: I5bffb6d6844c19adc575d86d5f9846af344a8679
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/gl_integrations/xcb_glx')
-rw-r--r-- | src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp index 0fd421e925..ea9db10858 100644 --- a/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp +++ b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp @@ -786,6 +786,10 @@ void QGLXContext::queryDummyContext() } } + static bool nomultithread = qEnvironmentVariableIsSet("QT_XCB_NO_THREADED_OPENGL"); + if (nomultithread) + m_supportsThreading = false; + context.doneCurrent(); if (oldContext && oldSurface) oldContext->makeCurrent(oldSurface); |