From 4a7f1326e3d342148a4a9147505a4d8d531b4a06 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Wed, 30 Oct 2013 14:09:18 +0100 Subject: Work around Nouveau driver bugs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I25311a2bd88f41087352e0a43ba505f4e27b7e85 Reviewed-by: Jørgen Lind --- src/quick/scenegraph/qsgcontext.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/quick/scenegraph/qsgcontext.cpp') 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(); } -- cgit v1.2.3