From d38162efa0e4b19d6794692ee9b2935f647b7859 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Samuel=20R=C3=B8dal?= Date: Wed, 14 Sep 2011 15:51:20 +0200 Subject: [PATCH] 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 --- src/declarative/items/qsgcanvas.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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) -- 1.7.2.5