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:
parent
dddd0c3ad8
commit
63a88d0d26
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user