Removed the compile objects in init in the SceneView::setDefaults() setup.

This commit is contained in:
Robert Osfield
2007-02-22 10:56:36 +00:00
parent b9eb2fcdee
commit 03c198da4d

View File

@@ -1438,6 +1438,8 @@ void Viewer::setUpRenderingSupport()
Cameras localCameras;
getCameras(localCameras);
unsigned int sceneViewOptions = osgUtil::SceneView::HEADLIGHT;
if (true)//(_threadingModel==CullThreadPerCameraDrawThreadPerContext)
{
@@ -1472,7 +1474,7 @@ void Viewer::setUpRenderingSupport()
sceneViewList[i] = sceneView;
sceneView->setGlobalStateSet(_camera->getStateSet());
sceneView->setDefaults();
sceneView->setDefaults(sceneViewOptions);
sceneView->setDisplaySettings(ds);
sceneView->setCamera(camera);
sceneView->setState(state);
@@ -1494,7 +1496,7 @@ void Viewer::setUpRenderingSupport()
_sceneViews.push_back(sceneView);
sceneView->setGlobalStateSet(_camera->getStateSet());
sceneView->setDefaults();
sceneView->setDefaults(sceneViewOptions);
sceneView->setDisplaySettings(ds);
sceneView->setCamera(camera);
sceneView->setState(state);
@@ -1531,7 +1533,7 @@ void Viewer::setUpRenderingSupport()
_sceneViews.push_back(sceneView);
sceneView->setGlobalStateSet(_camera->getStateSet());
sceneView->setDefaults();
sceneView->setDefaults(sceneViewOptions);
sceneView->setDisplaySettings(ds);
sceneView->setCamera(camera);
sceneView->setState(state);