Allow multithreaded opengl to be disabled

Pick-to: 5.15
Change-Id: I5bffb6d6844c19adc575d86d5f9846af344a8679
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Allan Sandfeld Jensen 2020-05-18 13:21:47 +02:00
parent dddd0c3ad8
commit 63a88d0d26

View File

@ -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);