Add dds no flip on write option to prevent output of .dds volume from being flipped by the dds plugin.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.2@14340 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2014-06-30 15:31:39 +00:00
parent 98889b7331
commit 81b32a3d89

View File

@@ -1115,7 +1115,8 @@ int main( int argc, char **argv )
if (image_3d.valid())
{
image_3d->setFileName(name_no_ext + ".dds");
osgDB::writeImageFile(*image_3d, image_3d->getFileName());
osg::ref_ptr<osgDB::Options> options = new osgDB::Options("ddsNoAutoFlipWrite");;
osgDB::writeImageFile(*image_3d, image_3d->getFileName(), options.get());
}
osgDB::writeNodeFile(*volume, outputFile);
}