Use QWindow's surface format for QSGCanvas' GL context
authorGunnar Sletta <gunnar.sletta@nokia.com>
Thu, 15 Sep 2011 10:35:27 +0000 (12:35 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Sep 2011 11:33:16 +0000 (13:33 +0200)
Change-Id: Ibca3b126405e2c7a0deaad55151c1bd2b284cf93
Reviewed-on: http://codereview.qt-project.org/4972
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/declarative/items/qsgcanvas.cpp

index 49057ca..749099c 100644 (file)
@@ -1831,6 +1831,7 @@ QImage QSGCanvas::grabFrameBuffer()
 void QSGCanvasRenderLoop::createGLContext()
 {
     gl = new QOpenGLContext();
+    gl->setFormat(renderer->format());
     gl->create();
 }