diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-14 03:52:51 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-14 03:52:51 +0100 |
commit | 3377b78ea783ced2088370d698114b79b4ed1aa7 (patch) | |
tree | 7e5a1047ae1388f50cece37cb236114a6b17ca92 /src/video_core/textures/astc.cpp | |
parent | astc: Create a LUT at compile time for encoding values (diff) | |
download | yuzu-3377b78ea783ced2088370d698114b79b4ed1aa7.tar yuzu-3377b78ea783ced2088370d698114b79b4ed1aa7.tar.gz yuzu-3377b78ea783ced2088370d698114b79b4ed1aa7.tar.bz2 yuzu-3377b78ea783ced2088370d698114b79b4ed1aa7.tar.lz yuzu-3377b78ea783ced2088370d698114b79b4ed1aa7.tar.xz yuzu-3377b78ea783ced2088370d698114b79b4ed1aa7.tar.zst yuzu-3377b78ea783ced2088370d698114b79b4ed1aa7.zip |
Diffstat (limited to '')
-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 eb93b44bd..5c65844dd 100644 --- a/src/video_core/textures/astc.cpp +++ b/src/video_core/textures/astc.cpp @@ -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, |