summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-18 05:53:21 +0200
committerLioncash <mathew1800@gmail.com>2018-07-18 05:58:14 +0200
commit6a03badcbc92ab650900abaa64dd7d47e330b101 (patch)
treebcbe91bb55ac57eba937ffc7c7e6e32683d29863 /src/video_core
parentastc: Mark functions as internally linked where applicable (diff)
downloadyuzu-6a03badcbc92ab650900abaa64dd7d47e330b101.tar
yuzu-6a03badcbc92ab650900abaa64dd7d47e330b101.tar.gz
yuzu-6a03badcbc92ab650900abaa64dd7d47e330b101.tar.bz2
yuzu-6a03badcbc92ab650900abaa64dd7d47e330b101.tar.lz
yuzu-6a03badcbc92ab650900abaa64dd7d47e330b101.tar.xz
yuzu-6a03badcbc92ab650900abaa64dd7d47e330b101.tar.zst
yuzu-6a03badcbc92ab650900abaa64dd7d47e330b101.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/textures/astc.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp
index 6dfcadc6a..b1feacae9 100644
--- a/src/video_core/textures/astc.cpp
+++ b/src/video_core/textures/astc.cpp
@@ -1600,8 +1600,7 @@ namespace Tegra::Texture::ASTC {
std::vector<uint8_t> Decompress(std::vector<uint8_t>& data, uint32_t width, uint32_t height,
uint32_t block_width, uint32_t block_height) {
uint32_t blockIdx = 0;
- std::vector<uint8_t> outData;
- outData.resize(height * width * 4);
+ std::vector<uint8_t> outData(height * width * 4);
for (uint32_t j = 0; j < height; j += block_height) {
for (uint32_t i = 0; i < width; i += block_width) {