From 2032be209ac081ceb453c5e46105909dc292d8cd Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 19 Aug 2014 09:00:42 +0000 Subject: [PATCH] Fixed build git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14411 16af8721-9629-0410-8352-f15c8da7e697 --- examples/osgcallback/osgcallback.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/osgcallback/osgcallback.cpp b/examples/osgcallback/osgcallback.cpp index d148fea24..ea04bd6a2 100644 --- a/examples/osgcallback/osgcallback.cpp +++ b/examples/osgcallback/osgcallback.cpp @@ -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);