From 5a0b2760b49bbe31807b180742aaf9190eeb5649 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 5 Nov 2010 17:09:58 +0000 Subject: [PATCH] From Alexander Irion, "Please find another bugfix for the ReaderWriterGZ. This time, the writing did not work for me - the created output file could not be deflated by zip. " --- src/osgPlugins/gz/ReaderWriterGZ.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/gz/ReaderWriterGZ.cpp b/src/osgPlugins/gz/ReaderWriterGZ.cpp index e77464e10..0f4d1ce72 100644 --- a/src/osgPlugins/gz/ReaderWriterGZ.cpp +++ b/src/osgPlugins/gz/ReaderWriterGZ.cpp @@ -227,7 +227,7 @@ osgDB::ReaderWriter::WriteResult ReaderWriterGZ::writeFile(ObjectType objectType std::stringstream strstream; osgDB::ReaderWriter::WriteResult writeResult = writeFile(objectType, object, rw, strstream, options); - osgDB::ofstream fout(fullFileName.c_str()); + osgDB::ofstream fout(fullFileName.c_str(), std::ios::binary|std::ios::out); write(fout,strstream.str());