From Alaxandre Irion, "Trying to load the attached texture file "texture.dds.gz" fails and causes the following warning on the console:
From Alaxandre Irion, "Trying to load the attached texture file "texture.dds.gz" fails and causes the following warning on the console:

ReadDDSFile warning: couldn't read mipmapData

The issue is caused, when the last block of data is read from the file (less than chunk size of 16384 bytes). The read operation in ReaderWriterGZ::read() then sets the eof and fail bit in the stream and the lines

if (fin.fail())
{
 (void)inflateEnd(&strm);
 return false;
}

causes the reading to be aborted with the last read data not beeing inflated.

Please find the attached fix for this problem."


marchelbling/osg,openscenegraph/osg,jtorresfabra/osg,scrawl/osg,openscenegraph/osg,openscenegraph/osg,artoolkit/osg,scrawl/osg,jtorresfabra/osg,tomasthoresen/osg,artoolkit/osg,tomasthoresen/osg,marchelbling/osg,jtorresfabra/osg,artoolkit/osg,marchelbling/osg,marchelbling/osg,openscenegraph/osg,artoolkit/osg,tomasthoresen/osg,scrawl/osg,scrawl/osg,tomasthoresen/osg,jtorresfabra/osg