xcb: Warn and bail out when even the basic, dummy context fails

Do not move on to glGet since the behavior is undefined.

Task-number: QTBUG-48986
Change-Id: Ifd279635ed1b8441f92697965d15ae3ecb59a7e3
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
Laszlo Agocs 2016-11-07 09:54:55 +01:00
parent e8364f9a4b
commit 3c2cb87de2

View File

@ -672,8 +672,11 @@ void QGLXContext::queryDummyContext()
}
QOpenGLContext context;
context.create();
context.makeCurrent(surface.data());
if (!context.create() || !context.makeCurrent(surface.data())) {
qWarning("QGLXContext: Failed to create dummy context");
m_supportsThreading = false;
return;
}
m_supportsThreading = true;