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:
parent
45bea0db4b
commit
43a068b156
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user