Fix error in zero padding.

This commit is contained in:
castano 2009-06-13 14:18:31 +00:00
parent 720be412fa
commit 71f29a27f3

View File

@ -150,7 +150,7 @@ void nv::compressRGB(const Image * image, const OutputOptions::Private & outputO
}
// Zero padding.
for (uint x = w; x < pitch; x++)
for (uint x = w * byteCount; x < pitch; x++)
{
*(dst + x) = 0;
}