diff options
| author | 2019-02-09 10:20:52 +0100 | |
|---|---|---|
| committer | 2019-03-29 18:22:08 +0100 | |
| commit | aa92da205e3f975dffc3c706fb0a176f13649492 (patch) | |
| tree | 0783642c39b3e67da8a37a76928c5b83536b883f | |
| parent | gl_shader_disk_cache: Use Zstandard for compression (diff) | |
| download | yuzu-aa92da205e3f975dffc3c706fb0a176f13649492.tar.gz yuzu-aa92da205e3f975dffc3c706fb0a176f13649492.tar.xz yuzu-aa92da205e3f975dffc3c706fb0a176f13649492.zip | |
gl_shader_disk_cache: Fixup clang format
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_disk_cache.cpp | 5 |
1 files changed, 3 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 e74ffd291..ec32602ad 100644 --- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp | |||
| @@ -10,8 +10,8 @@ | |||
| 10 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 11 | #include "common/file_util.h" | 11 | #include "common/file_util.h" |
| 12 | #include "common/logging/log.h" | 12 | #include "common/logging/log.h" |
| 13 | #include "common/zstd_compression.h" | ||
| 14 | #include "common/scm_rev.h" | 13 | #include "common/scm_rev.h" |
| 14 | #include "common/zstd_compression.h" | ||
| 15 | 15 | ||
| 16 | #include "core/core.h" | 16 | #include "core/core.h" |
| 17 | #include "core/hle/kernel/process.h" | 17 | #include "core/hle/kernel/process.h" |
| @@ -288,7 +288,8 @@ std::optional<ShaderDiskCacheDecompiled> ShaderDiskCacheOpenGL::LoadDecompiledEn | |||
| 288 | return {}; | 288 | return {}; |
| 289 | } | 289 | } |
| 290 | 290 | ||
| 291 | const std::vector<u8> code = Common::Compression::DecompressDataZSTD(compressed_code, code_size); | 291 | const std::vector<u8> code = |
| 292 | Common::Compression::DecompressDataZSTD(compressed_code, code_size); | ||
| 292 | if (code.empty()) { | 293 | if (code.empty()) { |
| 293 | return {}; | 294 | return {}; |
| 294 | } | 295 | } |