diff --git a/libkwineffects/kwinglplatform.cpp b/libkwineffects/kwinglplatform.cpp index 8955612095..ba9600fcd1 100644 --- a/libkwineffects/kwinglplatform.cpp +++ b/libkwineffects/kwinglplatform.cpp @@ -753,6 +753,11 @@ void GLPlatform::detect(OpenGLPlatformInterface platformInterface) m_driverVersion = parseVersionString(versionTokens.at(index + 1)); else m_driverVersion = 0; + + if (qgetenv("QT_OPENGL_NO_SANITY_CHECK").isNull()) { + // workaround for QTBUG-34898 + m_recommendedCompositor = XRenderCompositing; + } } @@ -825,6 +830,10 @@ void GLPlatform::detect(OpenGLPlatformInterface platformInterface) } else { m_recommendedCompositor = OpenGL2Compositing; } + if (m_chipClass == SandyBridge && m_renderer.contains("Mobile") && qgetenv("QT_OPENGL_NO_SANITY_CHECK").isNull()) { + // workaround for QTBUG-34898 + m_recommendedCompositor = XRenderCompositing; + } } if (isMesaDriver() && platformInterface == EglPlatformInterface) {