diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2023-02-22 06:48:12 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2023-02-23 00:21:09 +0100 |
commit | b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a (patch) | |
tree | a01027160958974738f322a491b22f009379d19b /src/video_core/textures/astc.cpp | |
parent | texture_cache: Add async texture decoding (diff) | |
download | yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.tar yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.tar.gz yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.tar.bz2 yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.tar.lz yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.tar.xz yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.tar.zst yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/textures/astc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp index e8d7c7863..4381eed1d 100644 --- a/src/video_core/textures/astc.cpp +++ b/src/video_core/textures/astc.cpp @@ -1656,8 +1656,8 @@ void Decompress(std::span<const uint8_t> data, uint32_t width, uint32_t height, const u32 rows = Common::DivideUp(height, block_height); const u32 cols = Common::DivideUp(width, block_width); - Common::ThreadWorker workers{std::max(std::thread::hardware_concurrency(), 2U) / 2, - "ASTCDecompress"}; + static Common::ThreadWorker workers{std::max(std::thread::hardware_concurrency(), 2U) / 2, + "ASTCDecompress"}; for (u32 z = 0; z < depth; ++z) { const u32 depth_offset = z * height * width * 4; |