1
0
Fork 0

Fix for build with Qt 5.2

This commit is contained in:
James Turner 2017-06-19 19:32:15 +01:00
parent af6611d7f6
commit 67dfff9a84

View file

@ -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 )