summaryrefslogtreecommitdiff
path: root/graphics/pfstools/files/patch-src-fileformat-exrio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pfstools/files/patch-src-fileformat-exrio.cpp')
-rw-r--r--graphics/pfstools/files/patch-src-fileformat-exrio.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/graphics/pfstools/files/patch-src-fileformat-exrio.cpp b/graphics/pfstools/files/patch-src-fileformat-exrio.cpp
new file mode 100644
index 000000000000..e2d1f9a16320
--- /dev/null
+++ b/graphics/pfstools/files/patch-src-fileformat-exrio.cpp
@@ -0,0 +1,28 @@
+--- src/fileformat/exrio.cpp.orig 2005-06-15 13:36:54.000000000 +0000
++++ src/fileformat/exrio.cpp 2014-02-20 19:04:01.546588828 +0000
+@@ -54,14 +54,14 @@
+ }
+
+ DEBUG_STR << "OpenEXR file \"" << filename << "\" ("
+- << width << "x" << height << ")" << endl;
++ << width << "x" << height << ")" << std::endl;
+ }
+
+ void OpenEXRReader::readImage( pfs::Array2D *R, pfs::Array2D *G,
+ pfs::Array2D *B )
+ {
+ assert(file!=NULL);
+- DEBUG_STR << "Reading OpenEXR file... " << endl;
++ DEBUG_STR << "Reading OpenEXR file... " << std::endl;
+
+ Imf::Rgba* tmp_img = new Imf::Rgba[width*height];
+
+@@ -93,7 +93,7 @@
+ OpenEXRReader::~OpenEXRReader()
+ {
+ delete file;
+- file==NULL;
++ file=NULL;
+ }
+
+ OpenEXRWriter::OpenEXRWriter(const char* filename)