From 546bf9b5f7629ca702beddf6e65d589a1cff06a5 Mon Sep 17 00:00:00 2001 From: Jan-Arve Saether Date: Fri, 20 Jul 2012 16:52:31 +0200 Subject: [PATCH] QSGContext::defaultSurfaceFormat() should be double-buffered The problem was that if the opengl driver is single-buffered by default it will remain so. The scene graph really want double-buffered rendering. Change-Id: Ie80f71276d1dd1304c75170f3ca17e585800e8b8 Reviewed-by: Kim M. Kalland --- src/quick/scenegraph/qsgcontext.cpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp index ed6a75d..0d6ddb5 100644 --- a/src/quick/scenegraph/qsgcontext.cpp +++ b/src/quick/scenegraph/qsgcontext.cpp @@ -378,6 +378,7 @@ QSurfaceFormat QSGContext::defaultSurfaceFormat() const QSurfaceFormat format; format.setDepthBufferSize(24); format.setStencilBufferSize(8); + format.setSwapBehavior(QSurfaceFormat::DoubleBuffer); return format; } -- 1.7.2.5