From: Samuel Rødal Date: Wed, 14 Sep 2011 13:51:20 +0000 (+0200) Subject: We need to set the OpenGLSurface surface type on QSGCanvas. X-Git-Tag: qt-v5.0.0-alpha1~1683 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d38162efa0e4b19d6794692ee9b2935f647b7859;p=profile%2Fivi%2Fqtdeclarative.git 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 Reviewed-by: Paul Olav Tvete --- diff --git a/src/declarative/items/qsgcanvas.cpp b/src/declarative/items/qsgcanvas.cpp index 9d1320b..49057ca 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 &touchPoints, const QTransform &transform)