Fixed build
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14411 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
818e1393ec
commit
2032be209a
@ -253,7 +253,7 @@ int main( int argc, char **argv )
|
||||
|
||||
// run optimization over the scene graph
|
||||
osgUtil::Optimizer optimzer;
|
||||
optimzer.optimize(rootnode);
|
||||
optimzer.optimize(rootnode.get());
|
||||
|
||||
// insert all the callbacks
|
||||
InsertCallbacksVisitor icv;
|
||||
@ -264,7 +264,7 @@ int main( int argc, char **argv )
|
||||
viewer.getCamera()->setEventCallback(new CameraEventCallback());
|
||||
|
||||
// set the scene to render
|
||||
viewer.setSceneData(rootnode);
|
||||
viewer.setSceneData(rootnode.get());
|
||||
|
||||
viewer.setCameraManipulator(new osgGA::TrackballManipulator);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user