Don't memset if we don't need to.

This commit is contained in:
Pavel Krajcevski 2013-10-14 17:49:45 -04:00
parent 0b85431526
commit d0260d3755

View File

@ -677,8 +677,6 @@ namespace PVRTCC {
assert(width & (width - 1) == 0);
assert(height & (height - 1) == 0);
memset(cj.outBuf, 0, (width * height / 16) * kBlockSize);
CompressionLabel *labels =
(CompressionLabel *)calloc(width * height, sizeof(CompressionLabel));