diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-07-25 03:11:14 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-07-25 03:11:56 -0400 |
| commit | c5bdccfecb279ba581e5931f7fd9678d1aaa8f85 (patch) | |
| tree | 8d12aff0d6624729521ea9a5950308fd2731aa18 /src/video_core | |
| parent | e96cf13ebcf9d4aef90583e59eafecc19bb39847 (diff) | |
zstd_compression: Make use of std::span in interfaces
Allows condensing the data and size parameters into a single argument.
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"); |
