Fixed bug with MinizBlockCompressor always saving out 10,000 bytes of data.

This commit is contained in:
David Williams
2013-08-19 16:27:52 +02:00
parent 07f1ca42d2
commit 55dc066a3f

View File

@ -53,7 +53,7 @@ namespace PolyVox
uCompressedLength = m_pCompressor->compress(pSrcData, uSrcLength, pDstData, uDstLength);
// Copy the resulting compressed data into the compressed block
pDstBlock->setData(pDstData, uDstLength);
pDstBlock->setData(pDstData, uCompressedLength);
}
catch(std::exception&)
{
@ -74,7 +74,7 @@ namespace PolyVox
uCompressedLength = m_pCompressor->compress(pSrcData, uSrcLength, pDstData, uDstLength);
// Copy the resulting compressed data into the compressed block
pDstBlock->setData(pDstData, uDstLength);
pDstBlock->setData(pDstData, uCompressedLength);
}
catch(std::exception&)
{