Moved the intialization variable reset to end of the init funciton to
avoid multi-thread initialization from producing different results.
This commit is contained in:
@@ -39,8 +39,6 @@ bool osg::initNotifyLevel()
|
||||
|
||||
if (s_NotifyInit) return true;
|
||||
|
||||
s_NotifyInit = true;
|
||||
|
||||
// g_NotifyLevel
|
||||
// =============
|
||||
|
||||
@@ -73,6 +71,8 @@ bool osg::initNotifyLevel()
|
||||
|
||||
}
|
||||
|
||||
s_NotifyInit = true;
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user