mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-01 15:56:32 -05:00
astc: Call std::vector:reserve on decodedClolorValues to avoid reallocating
This commit is contained in:
parent
3377b78ea7
commit
134f3ff9b4
1 changed files with 2 additions and 0 deletions
|
@ -811,6 +811,8 @@ static void DecodeColorValues(u32* out, u8* data, const u32* modes, const u32 nP
|
||||||
|
|
||||||
// We now have enough to decode our s32eger sequence.
|
// We now have enough to decode our s32eger sequence.
|
||||||
std::vector<IntegerEncodedValue> decodedColorValues;
|
std::vector<IntegerEncodedValue> decodedColorValues;
|
||||||
|
decodedColorValues.reserve(32);
|
||||||
|
|
||||||
InputBitStream colorStream(data);
|
InputBitStream colorStream(data);
|
||||||
DecodeIntegerSequence(decodedColorValues, colorStream, range, nValues);
|
DecodeIntegerSequence(decodedColorValues, colorStream, range, nValues);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue