Build fixes for when OSG_USE_REF_PTR_IMPLICIT_OUTPUT is set to OFF

This commit is contained in:
Robert Osfield 2010-06-18 09:07:17 +00:00
parent 39ee19e058
commit 98203252dc
2 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ public:
osgDB::ofstream fout( fileName.c_str(), std::ios::out|std::ios::binary );
if ( !fout ) return WriteResult::ERROR_IN_WRITING_FILE;
result = writeImage( image, fout, local_opt );
result = writeImage( image, fout, local_opt.get() );
fout.close();
return result;
}

View File

@ -96,7 +96,7 @@ void Terrain::traverse(osg::NodeVisitor& nv)
itr != tiles.end();
++itr)
{
TerrainTile* tile = *itr;
TerrainTile* tile = itr->get();
tile->traverse(nv);
}
}