diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-09-15 12:35:27 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-15 13:33:16 +0200 |
commit | dff8ec47d958be4d0861344c546b84218f41bc1e (patch) | |
tree | acac618d76da8607d540c56696ea4cde43e48a46 /src/declarative/items | |
parent | 931f631ed8cd9af00a697c641540df442a2377df (diff) |
Use QWindow's surface format for QSGCanvas' GL context
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>
Diffstat (limited to 'src/declarative/items')
-rw-r--r-- | src/declarative/items/qsgcanvas.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/items/qsgcanvas.cpp b/src/declarative/items/qsgcanvas.cpp index 49057cadc8..749099c793 100644 --- a/src/declarative/items/qsgcanvas.cpp +++ b/src/declarative/items/qsgcanvas.cpp @@ -1831,6 +1831,7 @@ QImage QSGCanvas::grabFrameBuffer() void QSGCanvasRenderLoop::createGLContext() { gl = new QOpenGLContext(); + gl->setFormat(renderer->format()); gl->create(); } |