Standardize the call to setUpThreading() in CompositeViewer/Viewer::realize().
Standardize the call to scene->resizeGLObjects(). git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.4@14945 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -639,14 +639,15 @@ void CompositeViewer::realize()
|
||||
}
|
||||
|
||||
|
||||
startThreading();
|
||||
|
||||
// initialize the global timer to be relative to the current time.
|
||||
osg::Timer::instance()->setStartTick();
|
||||
|
||||
// pass on the start tick to all the associated eventqueues
|
||||
setStartTick(osg::Timer::instance()->getStartTick());
|
||||
|
||||
// configure threading.
|
||||
setUpThreading();
|
||||
|
||||
if (osg::DisplaySettings::instance()->getCompileContextsHint())
|
||||
{
|
||||
int numProcessors = OpenThreads::GetNumberOfProcessors();
|
||||
|
||||
Reference in New Issue
Block a user