diff options
author | Lioncash <mathew1800@gmail.com> | 2020-08-15 11:25:28 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-08-15 23:17:56 +0200 |
commit | 1ee060ca0dfae7d0a1c830c7495f3125acf0ec7f (patch) | |
tree | 23126ca46fa87e73445002adb9422d7c6295a1da /src/video_core/renderer_opengl/gl_shader_disk_cache.cpp | |
parent | common: Make use of [[nodiscard]] where applicable (diff) | |
download | yuzu-1ee060ca0dfae7d0a1c830c7495f3125acf0ec7f.tar yuzu-1ee060ca0dfae7d0a1c830c7495f3125acf0ec7f.tar.gz yuzu-1ee060ca0dfae7d0a1c830c7495f3125acf0ec7f.tar.bz2 yuzu-1ee060ca0dfae7d0a1c830c7495f3125acf0ec7f.tar.lz yuzu-1ee060ca0dfae7d0a1c830c7495f3125acf0ec7f.tar.xz yuzu-1ee060ca0dfae7d0a1c830c7495f3125acf0ec7f.tar.zst yuzu-1ee060ca0dfae7d0a1c830c7495f3125acf0ec7f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_disk_cache.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp index c0e73789b..2dcc2b0eb 100644 --- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp @@ -422,7 +422,8 @@ void ShaderDiskCacheOpenGL::SavePrecompiledHeaderToVirtualPrecompiledCache() { void ShaderDiskCacheOpenGL::SaveVirtualPrecompiledFile() { precompiled_cache_virtual_file_offset = 0; const std::vector<u8> uncompressed = precompiled_cache_virtual_file.ReadAllBytes(); - const std::vector<u8> compressed = Common::Compression::CompressDataZSTDDefault(uncompressed); + const std::vector<u8> compressed = + Common::Compression::CompressDataZSTDDefault(uncompressed.data(), uncompressed.size()); const auto precompiled_path{GetPrecompiledPath()}; FileUtil::IOFile file(precompiled_path, "wb"); |