Respect the default format from the scene graph adaptation layer
authorGunnar Sletta <gunnar.sletta@digia.com>
Fri, 1 Feb 2013 11:38:26 +0000 (12:38 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 5 Feb 2013 15:48:25 +0000 (16:48 +0100)
Change-Id: I080c25ed8b8cc8b743043b5aa348927749c1f0eb
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>

tools/qmlscene/main.cpp

index 090d173..1e7c6e1 100644 (file)
@@ -501,7 +501,7 @@ int main(int argc, char ** argv)
             }
 
             if (window) {
-                QSurfaceFormat surfaceFormat;
+                QSurfaceFormat surfaceFormat = window->requestedFormat();
                 if (options.multisample)
                     surfaceFormat.setSamples(16);
                 if (options.transparent) {