Disable OSG 3.5.5 thread affinity setting in the scenewidget due to the interference with QT threads

Reference: http://forum.openscenegraph.org/viewtopic.php?t=16158
coverity_scan^2
scrawl 8 years ago
parent 530fb61ad0
commit 95a67bf0c2

@ -10,6 +10,7 @@
#include <osgViewer/CompositeViewer>
#include <osgViewer/ViewerEventHandlers>
#include <osg/LightModel>
#include <osg/Version>
#include <components/resource/scenemanager.hpp>
#include <components/resource/resourcesystem.hpp>
@ -130,6 +131,10 @@ CompositeViewer::CompositeViewer()
setThreadingModel(threadingModel);
#if OSG_VERSION_GREATER_OR_EQUAL(3,5,5)
setUseConfigureAffinity(false);
#endif
// disable the default setting of viewer.done() by pressing Escape.
setKeyEventSetsDone(0);

Loading…
Cancel
Save