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:
parent
530fb61ad0
commit
95a67bf0c2
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue