aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-09-14 15:51:20 +0200
committerQt by Nokia <qt-info@nokia.com>2011-09-15 10:22:43 +0200
commitd38162efa0e4b19d6794692ee9b2935f647b7859 (patch)
tree55fba30b7c22387ceb1c9f19e646646de25b6650 /src
parenta7be892f3aafdfcedee3fddbc6b1750a6bc580d9 (diff)
We need to set the OpenGLSurface surface type on QSGCanvas.
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>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/items/qsgcanvas.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/items/qsgcanvas.cpp b/src/declarative/items/qsgcanvas.cpp
index 9d1320b0b7..49057cadc8 100644
--- a/src/declarative/items/qsgcanvas.cpp
+++ b/src/declarative/items/qsgcanvas.cpp
@@ -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)