diff options
| author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-14 00:09:56 -0300 |
|---|---|---|
| committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-14 00:09:56 -0300 |
| commit | 83bdac46d1ca09dc6b60871e6463cefe069daa0c (patch) | |
| tree | 7623b8f42e9503ba34f444ae0773b67ff74d109b /src/video_core/textures/astc.cpp | |
| parent | 8412a20f0055ae5f2c6f6394d087480aae8937c2 (diff) | |
astc: Call std::vector:reserve on decodedClolorValues to avoid reallocating
Diffstat (limited to 'src/video_core/textures/astc.cpp')
| -rw-r--r-- | src/video_core/textures/astc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp index 5c65844ddd..c15548d348 100644 --- a/src/video_core/textures/astc.cpp +++ b/src/video_core/textures/astc.cpp @@ -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. std::vector<IntegerEncodedValue> decodedColorValues; + decodedColorValues.reserve(32); + InputBitStream colorStream(data); DecodeIntegerSequence(decodedColorValues, colorStream, range, nValues); |
