Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From Alaxandre Irion, "Trying to load the attached texture file "text…
…ure.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."
- Loading branch information