Skip to content
Snippets Groups Projects
Commit 3377b78e authored by ReinUsesLisp's avatar ReinUsesLisp
Browse files

astc: Call std::vector::reserve on texelWeightValues to avoid reallocating

parent 801fd04f
No related branches found
No related tags found
No related merge requests found
......@@ -1538,6 +1538,8 @@ static void DecompressBlock(const u8 inBuf[16], const u32 blockWidth, const u32
memset(texelWeightData + clearByteStart, 0, 16 - clearByteStart);
std::vector<IntegerEncodedValue> texelWeightValues;
texelWeightValues.reserve(64);
InputBitStream weightStream(texelWeightData);
DecodeIntegerSequence(texelWeightValues, weightStream, weightParams.m_MaxWeight,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment