diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-02-01 12:38:26 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-05 16:48:25 +0100 |
commit | a51d867ff269a6d2a703a96bc6eff113893d13d8 (patch) | |
tree | aef79366db345997c3f18f34de133d0c444a8322 /tools | |
parent | 8f774ffb954c219d503e99c94b62e754a7e6e435 (diff) |
Respect the default format from the scene graph adaptation layer
Change-Id: I080c25ed8b8cc8b743043b5aa348927749c1f0eb
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmlscene/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qmlscene/main.cpp b/tools/qmlscene/main.cpp index 090d173f9f..1e7c6e13de 100644 --- a/tools/qmlscene/main.cpp +++ b/tools/qmlscene/main.cpp @@ -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) { |