Hi!

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.

--Alex

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=33369#33369




Attachments: 
http://forum.openscenegraph.org//files/attachment_457.zip


_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to