Fix for build with Qt 5.2
This commit is contained in:
parent
af6611d7f6
commit
67dfff9a84
1 changed files with 2 additions and 1 deletions
|
@ -481,8 +481,9 @@ void GraphicsWindowQt5::qSurfaceFormat2traits( const QSurfaceFormat& format, osg
|
|||
|
||||
traits->quadBufferStereo = format.stereo();
|
||||
traits->doubleBuffer = (format.swapBehavior() == QSurfaceFormat::DoubleBuffer);
|
||||
|
||||
#if QT_VERSION >= 0x050300
|
||||
traits->vsync = format.swapInterval() >= 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
osg::GraphicsContext::Traits* GraphicsWindowQt5::createTraits( const QWindow* window )
|
||||
|
|
Loading…
Add table
Reference in a new issue