diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-10-30 14:09:18 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-30 15:18:33 +0100 |
commit | 4a7f1326e3d342148a4a9147505a4d8d531b4a06 (patch) | |
tree | 7194f7b696b264e319c3fd3671fc074a7cc25270 /src/particles | |
parent | 388fc07cf28417f6e755ad8a105a71aa55ab13c8 (diff) |
Work around Nouveau driver bugs
Change-Id: I25311a2bd88f41087352e0a43ba505f4e27b7e85
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'src/particles')
-rw-r--r-- | src/particles/qquickimageparticle.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/particles/qquickimageparticle.cpp b/src/particles/qquickimageparticle.cpp index fa828d7b63..036dfb901e 100644 --- a/src/particles/qquickimageparticle.cpp +++ b/src/particles/qquickimageparticle.cpp @@ -1385,6 +1385,12 @@ void QQuickImageParticle::finishBuildParticleNodes() } #endif +#ifdef Q_OS_LINUX + // Nouveau drivers can potentially freeze a machine entirely when taking the point-sprite path. + if (perfLevel < Deformable && strstr((char *) glGetString(GL_VENDOR), "nouveau")) + perfLevel = Deformable; +#endif + if (perfLevel >= Colored && !m_color.isValid()) m_color = QColor(Qt::white);//Hidden default, but different from unset |