summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-07-25 09:11:14 +0200
committerLioncash <mathew1800@gmail.com>2020-07-25 09:11:56 +0200
commitc5bdccfecb279ba581e5931f7fd9678d1aaa8f85 (patch)
tree8d12aff0d6624729521ea9a5950308fd2731aa18 /src/video_core
parentMerge pull request #4383 from ogniK5377/dark-checkbox (diff)
downloadyuzu-c5bdccfecb279ba581e5931f7fd9678d1aaa8f85.tar
yuzu-c5bdccfecb279ba581e5931f7fd9678d1aaa8f85.tar.gz
yuzu-c5bdccfecb279ba581e5931f7fd9678d1aaa8f85.tar.bz2
yuzu-c5bdccfecb279ba581e5931f7fd9678d1aaa8f85.tar.lz
yuzu-c5bdccfecb279ba581e5931f7fd9678d1aaa8f85.tar.xz
yuzu-c5bdccfecb279ba581e5931f7fd9678d1aaa8f85.tar.zst
yuzu-c5bdccfecb279ba581e5931f7fd9678d1aaa8f85.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_disk_cache.cpp3
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");