From 43a068b156441f7e4dd58f27e79062a14be798e2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 30 Jun 2014 15:31:36 +0000 Subject: [PATCH] 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 --- examples/osgvolume/osgvolume.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/osgvolume/osgvolume.cpp b/examples/osgvolume/osgvolume.cpp index 6d46fb94a..ee0210b2e 100644 --- a/examples/osgvolume/osgvolume.cpp +++ b/examples/osgvolume/osgvolume.cpp @@ -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 options = new osgDB::Options("ddsNoAutoFlipWrite");; + osgDB::writeImageFile(*image_3d, image_3d->getFileName(), options.get()); } osgDB::writeNodeFile(*volume, outputFile); }