diff --git a/examples/osgvolume/osgvolume.cpp b/examples/osgvolume/osgvolume.cpp index ee0210b2e..ca4d05342 100644 --- a/examples/osgvolume/osgvolume.cpp +++ b/examples/osgvolume/osgvolume.cpp @@ -1184,7 +1184,9 @@ int main( int argc, char **argv ) { 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 options = new osgDB::Options("ddsNoAutoFlipWrite");; osgDB::writeImageFile(*image_3d, image_3d->getFileName(), options.get()); }