aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgcontext.cpp
diff options
context:
space:
mode:
authorJan-Arve Saether <jan-arve.saether@nokia.com>2012-07-20 16:52:31 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-23 15:45:08 +0200
commit546bf9b5f7629ca702beddf6e65d589a1cff06a5 (patch)
treea3797191cecc16f587ad4c34beccc5076b77ad39 /src/quick/scenegraph/qsgcontext.cpp
parent0766bcbb22c0f5c67cf6a8258d1b32e9272a146b (diff)
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 <kim.kalland@nokia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgcontext.cpp')
-rw-r--r--src/quick/scenegraph/qsgcontext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp
index ed6a75d669..0d6ddb50e4 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;
}