diff options
| author | 2020-07-25 03:11:14 -0400 | |
|---|---|---|
| committer | 2020-07-25 03:11:56 -0400 | |
| commit | c5bdccfecb279ba581e5931f7fd9678d1aaa8f85 (patch) | |
| tree | 8d12aff0d6624729521ea9a5950308fd2731aa18 /src/video_core/renderer_opengl | |
| parent | Merge pull request #4383 from ogniK5377/dark-checkbox (diff) | |
| download | yuzu-c5bdccfecb279ba581e5931f7fd9678d1aaa8f85.tar.gz yuzu-c5bdccfecb279ba581e5931f7fd9678d1aaa8f85.tar.xz yuzu-c5bdccfecb279ba581e5931f7fd9678d1aaa8f85.zip | |
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/renderer_opengl')
| -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() { | |||
| 422 | void ShaderDiskCacheOpenGL::SaveVirtualPrecompiledFile() { | 422 | void ShaderDiskCacheOpenGL::SaveVirtualPrecompiledFile() { |
| 423 | precompiled_cache_virtual_file_offset = 0; | 423 | precompiled_cache_virtual_file_offset = 0; |
| 424 | const std::vector<u8> uncompressed = precompiled_cache_virtual_file.ReadAllBytes(); | 424 | const std::vector<u8> uncompressed = precompiled_cache_virtual_file.ReadAllBytes(); |
| 425 | const std::vector<u8> compressed = | 425 | const std::vector<u8> compressed = Common::Compression::CompressDataZSTDDefault(uncompressed); |
| 426 | Common::Compression::CompressDataZSTDDefault(uncompressed.data(), uncompressed.size()); | ||
| 427 | 426 | ||
| 428 | const auto precompiled_path{GetPrecompiledPath()}; | 427 | const auto precompiled_path{GetPrecompiledPath()}; |
| 429 | FileUtil::IOFile file(precompiled_path, "wb"); | 428 | FileUtil::IOFile file(precompiled_path, "wb"); |