Changed the default image output format to .osgb as .dds isn't able to represent signed byte, short and int data correctly.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14346 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2014-07-02 15:34:37 +00:00
parent 7bacd73e85
commit b8dbebeca7

View File

@ -1184,7 +1184,9 @@ int main( int argc, char **argv )
{ {
if (image_3d.valid()) if (image_3d.valid())
{ {
image_3d->setFileName(name_no_ext + ".dds"); std::string image_writeExtension = ".osgb";
image_3d->setFileName(name_no_ext + image_writeExtension);
osg::ref_ptr<osgDB::Options> options = new osgDB::Options("ddsNoAutoFlipWrite");; osg::ref_ptr<osgDB::Options> options = new osgDB::Options("ddsNoAutoFlipWrite");;
osgDB::writeImageFile(*image_3d, image_3d->getFileName(), options.get()); osgDB::writeImageFile(*image_3d, image_3d->getFileName(), options.get());
} }