From Jason Beverage, "Here is a small fix that enables writing 16 bit short images in the tiff plugin.

"
This commit is contained in:
Robert Osfield
2009-01-27 15:14:47 +00:00
parent c7744b15a3
commit a7b057feee

View File

@@ -811,6 +811,10 @@ class ReaderWriterTIFF : public osgDB::ReaderWriter
TIFFSetField(image, TIFFTAG_ROWSPERSTRIP, 1);
bitsPerSample = 32;
break;
case GL_SHORT:
TIFFSetField(image, TIFFTAG_SAMPLEFORMAT, SAMPLEFORMAT_INT);
bitsPerSample = 16;
break;
default:
bitsPerSample = 8;
break;