diff options
| author | 2020-08-16 01:47:54 -0400 | |
|---|---|---|
| committer | 2020-08-16 01:47:54 -0400 | |
| commit | db96034ea429cf0b0b5e2bac790392d9e2f50990 (patch) | |
| tree | 9a1ed0bfc2d01d67d0f62383dbb2a1f4c9fb4eca /src/video_core | |
| parent | Merge pull request #4519 from lioncash/semi (diff) | |
| parent | common/compression: Roll back std::span changes (diff) | |
| download | yuzu-db96034ea429cf0b0b5e2bac790392d9e2f50990.tar.gz yuzu-db96034ea429cf0b0b5e2bac790392d9e2f50990.tar.xz yuzu-db96034ea429cf0b0b5e2bac790392d9e2f50990.zip | |
Merge pull request #4528 from lioncash/discard
common: Make use of [[nodiscard]] where applicable
Diffstat (limited to 'src/video_core')
| -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() { | |||
| 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 = Common::Compression::CompressDataZSTDDefault(uncompressed); | 425 | const std::vector<u8> compressed = |
| 426 | Common::Compression::CompressDataZSTDDefault(uncompressed.data(), uncompressed.size()); | ||
| 426 | 427 | ||
| 427 | const auto precompiled_path{GetPrecompiledPath()}; | 428 | const auto precompiled_path{GetPrecompiledPath()}; |
| 428 | FileUtil::IOFile file(precompiled_path, "wb"); | 429 | FileUtil::IOFile file(precompiled_path, "wb"); |