disable taskbar thumbnails with llvmpipe

the llvmpipe driver doesn't have a good quality enough for the
taskbar thumbnails components, it will have many crashes in the driver.
disabale thumbnails with that driver, as kwin disables many effects as well.

BUG:363371
This commit is contained in:
Marco Martin 2016-06-15 16:01:50 +02:00
parent 746f57713c
commit 9fba7c43c5

View File

@ -290,10 +290,14 @@ bool WindowThumbnail::windowToTextureGLX(WindowTextureNode *textureNode)
bool WindowThumbnail::xcbWindowToTextureEGL(WindowTextureNode *textureNode)
{
EGLContext context = eglGetCurrentContext();
if (context != EGL_NO_CONTEXT) {
if (!m_eglFunctionsResolved) {
resolveEGLFunctions();
}
if (QByteArray((char *)glGetString(GL_RENDERER)).contains("llvmpipe")) {
return Q_NULLPTR;
}
if (!m_eglCreateImageKHR || !m_eglDestroyImageKHR || !m_glEGLImageTargetTexture2DOES) {
return false;
}
@ -467,6 +471,10 @@ GLXFBConfig *getConfig(int depth, int *index)
0
};
if (QByteArray((char *)glGetString(GL_RENDERER)).contains("llvmpipe")) {
return Q_NULLPTR;
}
int count = 0;
GLXFBConfig *fbConfigs = glXChooseFBConfig(QX11Info::display(), QX11Info::appScreen(), attribs, &count);
if (count < 1) {