diff options
author | bunnei <bunneidev@gmail.com> | 2020-08-15 06:53:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-15 06:53:11 +0200 |
commit | feb243b08d3c6e126df054b05206bc2dc288df21 (patch) | |
tree | 9ec52227267b9369ba59d19de83ad967fc3e13b5 /src/video_core | |
parent | Merge pull request #4518 from lioncash/fmtlib (diff) | |
parent | lz4_compression: Make use of std::span in interfaces (diff) | |
download | yuzu-feb243b08d3c6e126df054b05206bc2dc288df21.tar yuzu-feb243b08d3c6e126df054b05206bc2dc288df21.tar.gz yuzu-feb243b08d3c6e126df054b05206bc2dc288df21.tar.bz2 yuzu-feb243b08d3c6e126df054b05206bc2dc288df21.tar.lz yuzu-feb243b08d3c6e126df054b05206bc2dc288df21.tar.xz yuzu-feb243b08d3c6e126df054b05206bc2dc288df21.tar.zst yuzu-feb243b08d3c6e126df054b05206bc2dc288df21.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_disk_cache.cpp | 3 |
1 files changed, 1 insertions, 2 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 2dcc2b0eb..c0e73789b 100644 --- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp @@ -422,8 +422,7 @@ 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.data(), uncompressed.size()); + const std::vector<u8> compressed = Common::Compression::CompressDataZSTDDefault(uncompressed); const auto precompiled_path{GetPrecompiledPath()}; FileUtil::IOFile file(precompiled_path, "wb"); |