diff --git a/examples/osgvolume/osgvolume.cpp b/examples/osgvolume/osgvolume.cpp index c3b1f9036..b919693da 100644 --- a/examples/osgvolume/osgvolume.cpp +++ b/examples/osgvolume/osgvolume.cpp @@ -873,7 +873,7 @@ int main( int argc, char **argv ) if (normalmap_3d.valid()) { normalmap_3d->setFileName(name_no_ext + "_normalmap.dds"); - osgDB::writeImageFile(*image_3d, normalmap_3d->getFileName()); + osgDB::writeImageFile(*normalmap_3d, normalmap_3d->getFileName()); } osgDB::writeNodeFile(*rootNode, outputFile);