From: Jan-Arve Saether Date: Fri, 20 Jul 2012 14:52:31 +0000 (+0200) Subject: QSGContext::defaultSurfaceFormat() should be double-buffered X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=546bf9b5f7629ca702beddf6e65d589a1cff06a5;p=konrad%2Fqtdeclarative.git 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 --- 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; }