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/trunk@14339 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2014-06-30 15:31:36 +00:00
parent 45bea0db4b
commit 43a068b156

View File

@ -1185,7 +1185,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);
}