use QWindows's format so users can override
authorGunnar Sletta <gunnar.sletta@nokia.com>
Thu, 29 Sep 2011 18:59:00 +0000 (20:59 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 3 Oct 2011 09:43:03 +0000 (11:43 +0200)
Change-Id: I3dd2d1ff63acb672ef4943cf8347c5c10f2d9466
Reviewed-on: http://codereview.qt-project.org/5847
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 d4a74cd..4eb6f92 100644 (file)
@@ -1893,7 +1893,7 @@ QDeclarativeIncubationController *QSGCanvas::incubationController() const
 void QSGCanvasRenderLoop::createGLContext()
 {
     gl = new QOpenGLContext();
-    gl->setFormat(d->context->defaultSurfaceFormat());
+    gl->setFormat(renderer->requestedFormat());
     gl->create();
 }