summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-03-14 04:09:56 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-03-14 04:09:56 +0100
commit134f3ff9b4e0ca0e9a5d41d14d5f5a938762b5fd (patch)
tree7623b8f42e9503ba34f444ae0773b67ff74d109b /src
parentastc: Call std::vector::reserve on texelWeightValues to avoid reallocating (diff)
downloadyuzu-134f3ff9b4e0ca0e9a5d41d14d5f5a938762b5fd.tar
yuzu-134f3ff9b4e0ca0e9a5d41d14d5f5a938762b5fd.tar.gz
yuzu-134f3ff9b4e0ca0e9a5d41d14d5f5a938762b5fd.tar.bz2
yuzu-134f3ff9b4e0ca0e9a5d41d14d5f5a938762b5fd.tar.lz
yuzu-134f3ff9b4e0ca0e9a5d41d14d5f5a938762b5fd.tar.xz
yuzu-134f3ff9b4e0ca0e9a5d41d14d5f5a938762b5fd.tar.zst
yuzu-134f3ff9b4e0ca0e9a5d41d14d5f5a938762b5fd.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/textures/astc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp
index 5c65844dd..c15548d34 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);