From Paul Palumbo, "This change seems to fix a problem reading 32-bit Floating point tiff images. Without this fix, I'm only getting half my image displayed in "osgviewer --image"."

This commit is contained in:
Robert Osfield
2012-02-06 12:42:52 +00:00
parent d21280785c
commit 55c4f9b401

View File

@@ -665,7 +665,7 @@ simage_tiff_load(std::istream& fin,
tifferror = ERR_READ;
break;
}
invert_row(currPtr, inbuf, w, photometric == PHOTOMETRIC_MINISWHITE, bitspersample);
invert_row(currPtr, inbuf, samplesperpixel*w, photometric == PHOTOMETRIC_MINISWHITE, bitspersample);
currPtr -= format*w;
}
break;