fix mutil thread crash

This commit is contained in:
jiegeaiai 2025-01-05 19:11:30 +08:00
parent bbec5d9598
commit df8871e09e

View File

@ -21,7 +21,7 @@ OsgViewer::OsgViewer(QObject* parent) noexcept
LOG_INFO("actor, self={}", fmt::ptr(this)); LOG_INFO("actor, self={}", fmt::ptr(this));
compositeViewer_->setKeyEventSetsDone(0); compositeViewer_->setKeyEventSetsDone(0);
osgEarth::initialize(); osgEarth::initialize();
//compositeViewer_->setThreadingModel(osgViewer::ViewerBase::ThreadingModel::SingleThreaded); compositeViewer_->setThreadingModel(osgViewer::ViewerBase::ThreadingModel::SingleThreaded);
} }