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/quick/scenegraph/qsgcontext.cpp | |
parent | 388fc07cf28417f6e755ad8a105a71aa55ab13c8 (diff) |
Work around Nouveau driver bugs
Change-Id: I25311a2bd88f41087352e0a43ba505f4e27b7e85
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgcontext.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgcontext.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp index 558711ea0e..4fbefb37d8 100644 --- a/src/quick/scenegraph/qsgcontext.cpp +++ b/src/quick/scenegraph/qsgcontext.cpp @@ -311,6 +311,7 @@ QSGRenderContext::QSGRenderContext(QSGContext *context) , m_atlasManager(0) , m_depthStencilManager(0) , m_distanceFieldCacheManager(0) + , m_brokenIBOs(false) { } @@ -408,6 +409,12 @@ void QSGRenderContext::initialize(QOpenGLContext *context) m_gl->setProperty(QSG_RENDERCONTEXT_PROPERTY, QVariant::fromValue(this)); m_sg->renderContextInitialized(this); +#ifdef Q_OS_LINUX + const char *vendor = (const char *) glGetString(GL_VENDOR); + if (strstr(vendor, "nouveau")) + m_brokenIBOs = true; +#endif + emit initialized(); } |