mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 01:35:38 +00:00
Don't memset if we don't need to.
This commit is contained in:
parent
0b85431526
commit
d0260d3755
|
@ -677,8 +677,6 @@ namespace PVRTCC {
|
||||||
assert(width & (width - 1) == 0);
|
assert(width & (width - 1) == 0);
|
||||||
assert(height & (height - 1) == 0);
|
assert(height & (height - 1) == 0);
|
||||||
|
|
||||||
memset(cj.outBuf, 0, (width * height / 16) * kBlockSize);
|
|
||||||
|
|
||||||
CompressionLabel *labels =
|
CompressionLabel *labels =
|
||||||
(CompressionLabel *)calloc(width * height, sizeof(CompressionLabel));
|
(CompressionLabel *)calloc(width * height, sizeof(CompressionLabel));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue