1
0
Fork 0

Fix build with Qt < 5.6

This commit is contained in:
James Turner 2017-10-09 12:15:40 +01:00
parent 2e37fabd80
commit 2d5f56a05d

View file

@ -268,8 +268,12 @@ void QQuickDrawable::setup(osgViewer::GraphicsWindow* gw)
d->qmlEngine->setIncubationController(d->quickWindow->incubationController());
d->renderControl->initialize(d->qtContext);
d->renderControl->prepareThread(op->thread());
#if QT_VERSION < 0x050600
SG_LOG(SG_GUI, SG_ALERT, "Qt < 5.6 was used to build FlightGear, multi-threading of QtQuick is not safe");
#else
d->renderControl->prepareThread(op->thread());
#endif
QObject::connect(d->renderControl, &QQuickRenderControl::sceneChanged,
d, &QQuickDrawablePrivate::onSceneChanged);
QObject::connect(d->renderControl, &QQuickRenderControl::renderRequested,