Propagate swapInterval to QGLFormat
Task-number: QTBUG-39370 Change-Id: Ib3a46a0ae24e5f6d690625b1d91be9e599bbc927 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
This commit is contained in:
parent
429beecb19
commit
07e1f524f3
@ -77,6 +77,7 @@ QGLFormat QGLFormat::fromSurfaceFormat(const QSurfaceFormat &format)
|
||||
retFormat.setStencil(true);
|
||||
retFormat.setStencilBufferSize(format.stencilBufferSize());
|
||||
}
|
||||
retFormat.setSwapInterval(format.swapInterval());
|
||||
retFormat.setDoubleBuffer(format.swapBehavior() != QSurfaceFormat::SingleBuffer);
|
||||
retFormat.setStereo(format.stereo());
|
||||
retFormat.setVersion(format.majorVersion(), format.minorVersion());
|
||||
@ -105,6 +106,7 @@ QSurfaceFormat QGLFormat::toSurfaceFormat(const QGLFormat &format)
|
||||
retFormat.setSamples(format.samples() == -1 ? 4 : format.samples());
|
||||
if (format.stencil())
|
||||
retFormat.setStencilBufferSize(format.stencilBufferSize() == -1 ? 1 : format.stencilBufferSize());
|
||||
retFormat.setSwapInterval(format.swapInterval());
|
||||
retFormat.setStereo(format.stereo());
|
||||
retFormat.setMajorVersion(format.majorVersion());
|
||||
retFormat.setMinorVersion(format.minorVersion());
|
||||
|
Loading…
Reference in New Issue
Block a user