From a51d867ff269a6d2a703a96bc6eff113893d13d8 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Fri, 1 Feb 2013 12:38:26 +0100 Subject: [PATCH] Respect the default format from the scene graph adaptation layer MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I080c25ed8b8cc8b743043b5aa348927749c1f0eb Reviewed-by: Samuel Rødal --- tools/qmlscene/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qmlscene/main.cpp b/tools/qmlscene/main.cpp index 090d173..1e7c6e1 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) { -- 2.7.4