Check ThreadedOpenGL support before enabling threaded renderer.
authorSamuel Rødal <samuel.rodal@nokia.com>
Thu, 24 May 2012 10:15:25 +0000 (12:15 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 24 May 2012 10:52:43 +0000 (12:52 +0200)
BufferQueuedOpenGL doesn't necessarily imply threading support.

Change-Id: I4ba8e3b9acfd3eb12bb41aa6b644c852ae5fa1c6
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/quick/items/qquickwindowmanager.cpp

index f584209..392085a 100644 (file)
@@ -332,7 +332,8 @@ QQuickWindowManager *QQuickWindowManager::instance()
 
         theInstance = QSGContext::createWindowManager();
 
-        bool fancy = QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::BufferQueueingOpenGL);
+        bool fancy = QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::BufferQueueingOpenGL)
+            && QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::ThreadedOpenGL);
         if (qmlNoThreadedRenderer())
             fancy = false;
         else if (qmlForceThreadedRenderer())