Fix threaded QOpenGL when robustness is requested
If the shared context had robustness set then all child contexts must as well, otherwise we will fallback to a non-shared context breaking threaded rendering. Change-Id: Ie5526e632ad21289b6164c1ca06e54ec714187c7 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>bb10
parent
0bd27f80e0
commit
7ee449a186
|
|
@ -270,7 +270,9 @@ void QGLXContext::init(QXcbScreen *screen, QPlatformOpenGLContext *share)
|
|||
// ES does not support any format option
|
||||
m_format.setOptions(QSurfaceFormat::FormatOptions());
|
||||
}
|
||||
|
||||
// Robustness must match that of the shared context.
|
||||
if (share && share->format().testOption(QSurfaceFormat::ResetNotification))
|
||||
m_format.setOption(QSurfaceFormat::ResetNotification);
|
||||
Q_ASSERT(glVersions.count() > 0);
|
||||
|
||||
for (int i = 0; !m_context && i < glVersions.count(); i++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue