From 884f4802029c3a7754faf7fd4fbe34c72d368c24 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 24 Jan 2012 15:44:58 +0000 Subject: [PATCH] Fixed compile error --- src/osgPlugins/imageio/ReaderWriterImageIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/imageio/ReaderWriterImageIO.cpp b/src/osgPlugins/imageio/ReaderWriterImageIO.cpp index f1489bc2c..11c4efe0f 100644 --- a/src/osgPlugins/imageio/ReaderWriterImageIO.cpp +++ b/src/osgPlugins/imageio/ReaderWriterImageIO.cpp @@ -1246,7 +1246,7 @@ public: } WriteResult ret_val = WriteResult::ERROR_IN_WRITING_FILE; - WriteResult ret_val = WriteResult::ERROR_IN_WRITING_FILE; + // Call ImageIO to load the image. CGImageDestinationRef cg_dest_ref = CreateCGImageDestinationFromFile(full_file_name.c_str(), the_options); if (NULL == cg_dest_ref) return WriteResult::ERROR_IN_WRITING_FILE;