Fix error in zero padding.
This commit is contained in:
parent
720be412fa
commit
71f29a27f3
|
@ -150,7 +150,7 @@ void nv::compressRGB(const Image * image, const OutputOptions::Private & outputO
|
||||||
}
|
}
|
||||||
|
|
||||||
// Zero padding.
|
// Zero padding.
|
||||||
for (uint x = w; x < pitch; x++)
|
for (uint x = w * byteCount; x < pitch; x++)
|
||||||
{
|
{
|
||||||
*(dst + x) = 0;
|
*(dst + x) = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user