If swapBehavior is TripleBuffer, set WGL_DOUBLE_BUFFER_ARB to TRUE
Previously, if the drivers' swap behaviour was single-buffered it would fallthrough (just like DefaultSwapBehavior) and remain single-buffered. Change-Id: I4b93ad7a49094aa992d0b8fb3429c163bbbf655d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
This commit is contained in:
parent
bcb5e564ff
commit
6fbf9506e6
@ -384,13 +384,13 @@ static int choosePixelFormat(HDC hdc,
|
||||
iAttributes[i++] = 24;
|
||||
switch (format.swapBehavior()) {
|
||||
case QSurfaceFormat::DefaultSwapBehavior:
|
||||
case QSurfaceFormat::TripleBuffer:
|
||||
break;
|
||||
case QSurfaceFormat::SingleBuffer:
|
||||
iAttributes[i++] = WGL_DOUBLE_BUFFER_ARB;
|
||||
iAttributes[i++] = FALSE;
|
||||
break;
|
||||
case QSurfaceFormat::DoubleBuffer:
|
||||
case QSurfaceFormat::TripleBuffer:
|
||||
iAttributes[i++] = WGL_DOUBLE_BUFFER_ARB;
|
||||
iAttributes[i++] = TRUE;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user