xcb: Disable GLX pbuffers with Chromium in VMs

Change-Id: I474e4a4ce424a92b46381eb26aeda811ed059819
Task-number: QTCREATORBUG-16252
Task-number: QTCREATORBUG-14937
Reviewed-by: Błażej Szczygieł <spaz16@wp.pl>
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
bb10
Laszlo Agocs 2016-05-20 14:52:18 +02:00 committed by Shawn Rutledge
parent a914003c82
commit 76810e1495
1 changed files with 4 additions and 2 deletions

View File

@ -201,8 +201,10 @@ QPlatformOffscreenSurface *QXcbGlxIntegration::createPlatformOffscreenSurface(QO
display = static_cast<Display *>(m_connection->xlib_display());
#endif
const char *glxvendor = glXGetClientString(display, GLX_VENDOR);
if (glxvendor && !strcmp(glxvendor, "ATI"))
glxPbufferUsable = false;
if (glxvendor) {
if (!strcmp(glxvendor, "ATI") || !strcmp(glxvendor, "Chromium"))
glxPbufferUsable = false;
}
}
if (glxPbufferUsable)
return new QGLXPbuffer(surface);