Introduced the use of ref_ptr<> in read show methods

This commit is contained in:
Robert Osfield
2010-04-28 17:29:31 +00:00
parent bff3fcbe72
commit f27678dbb9
3 changed files with 9 additions and 10 deletions

View File

@@ -682,7 +682,6 @@ int main( int argc, char **argv )
osg::ref_ptr<osgDB::ReaderWriter::Options> cacheAllOption = new osgDB::ReaderWriter::Options;
cacheAllOption->setObjectCacheHint(osgDB::ReaderWriter::Options::CACHE_ALL);
osgDB::Registry::instance()->setOptions(cacheAllOption.get());
// read the scene from the list of file specified commandline args.