We need to set the OpenGLSurface surface type on QSGCanvas.
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 14 Sep 2011 13:51:20 +0000 (15:51 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Sep 2011 08:22:43 +0000 (10:22 +0200)
Change-Id: Ib0ea343399b703c3437603918d97fc925e2adc4c
Reviewed-on: http://codereview.qt-project.org/4908
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
src/declarative/items/qsgcanvas.cpp

index 9d1320b..49057ca 100644 (file)
@@ -457,6 +457,8 @@ void QSGCanvasPrivate::init(QSGCanvas *c)
 
     context = QSGContext::createDefaultContext();
     thread->moveContextToThread(context);
+
+    q->setSurfaceType(QWindow::OpenGLSurface);
 }
 
 void QSGCanvasPrivate::transformTouchPoints(QList<QTouchEvent::TouchPoint> &touchPoints, const QTransform &transform)