Use QWindow's surface format for QSGCanvas' GL context
[profile/ivi/qtdeclarative.git] / 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();
 }