1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-01 12:36:40 +00:00

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
This commit is contained in:
scrawl 2016-10-10 18:17:40 +02:00
parent 530fb61ad0
commit 95a67bf0c2

View file

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