diff options
author | Jan-Arve Saether <jan-arve.saether@nokia.com> | 2012-07-20 16:11:45 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-23 19:57:07 +0200 |
commit | 4d573117c4e82783c82294786e7a6908158173ac (patch) | |
tree | e28a6a98607fe44b774e71f4c31a03c1b3e28a9a /src/plugins/platforms/windows/qwindowsglcontext.cpp | |
parent | 6fbf9506e6a2f8f7b4465234ca3aaab30bd695f1 (diff) |
If the GL driver is singlebuffered, reflect that in QSurfaceFormat
Change-Id: Iafed64d0a35f8d49357f147c8b7b4c0e9f4b9173
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsglcontext.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsglcontext.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/platforms/windows/qwindowsglcontext.cpp b/src/plugins/platforms/windows/qwindowsglcontext.cpp index 4a67130f96..b93ead61c9 100644 --- a/src/plugins/platforms/windows/qwindowsglcontext.cpp +++ b/src/plugins/platforms/windows/qwindowsglcontext.cpp @@ -526,8 +526,7 @@ static QSurfaceFormat qErrnoWarning("%s: wglGetPixelFormatAttribIVARB() failed for basic parameters.", __FUNCTION__); return result; } - if (iValues[0]) - result.setSwapBehavior(QSurfaceFormat::DoubleBuffer); + result.setSwapBehavior(iValues[0] ? QSurfaceFormat::DoubleBuffer : QSurfaceFormat::SingleBuffer); result.setDepthBufferSize(iValues[1]); result.setRedBufferSize(iValues[3]); result.setGreenBufferSize(iValues[4]); |