summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-19 08:53:38 +0200
committerLioncash <mathew1800@gmail.com>2019-05-19 08:55:18 +0200
commit0a7f09a99b915042269fac8d117326c20f72e7bf (patch)
tree2bcdb940f1c5d48c2544e628295850818ba8db49
parentgl_shader_disk_cache: Default ShaderDiskCacheOpenGL's destructor in the cpp file (diff)
downloadyuzu-0a7f09a99b915042269fac8d117326c20f72e7bf.tar
yuzu-0a7f09a99b915042269fac8d117326c20f72e7bf.tar.gz
yuzu-0a7f09a99b915042269fac8d117326c20f72e7bf.tar.bz2
yuzu-0a7f09a99b915042269fac8d117326c20f72e7bf.tar.lz
yuzu-0a7f09a99b915042269fac8d117326c20f72e7bf.tar.xz
yuzu-0a7f09a99b915042269fac8d117326c20f72e7bf.tar.zst
yuzu-0a7f09a99b915042269fac8d117326c20f72e7bf.zip
-rw-r--r--src/video_core/renderer_opengl/gl_shader_disk_cache.cpp3
-rw-r--r--src/video_core/renderer_opengl/gl_shader_disk_cache.h5
2 files changed, 3 insertions, 5 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 c446945ee..fba9c594a 100644
--- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp
@@ -104,8 +104,7 @@ bool ShaderDiskCacheRaw::Save(FileUtil::IOFile& file) const {
return true;
}
-ShaderDiskCacheOpenGL::ShaderDiskCacheOpenGL(Core::System& system)
- : system{system}, precompiled_cache_virtual_file_offset{0} {}
+ShaderDiskCacheOpenGL::ShaderDiskCacheOpenGL(Core::System& system) : system{system} {}
ShaderDiskCacheOpenGL::~ShaderDiskCacheOpenGL() = default;
diff --git a/src/video_core/renderer_opengl/gl_shader_disk_cache.h b/src/video_core/renderer_opengl/gl_shader_disk_cache.h
index bafd3b3f2..2da0a4a23 100644
--- a/src/video_core/renderer_opengl/gl_shader_disk_cache.h
+++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.h
@@ -285,11 +285,10 @@ private:
Core::System& system;
// Stored transferable shaders
std::map<u64, std::unordered_set<ShaderDiskCacheUsage>> transferable;
- // Stores whole precompiled cache which will be read from or saved to the precompiled chache
- // file
+ // Stores whole precompiled cache which will be read from/saved to the precompiled cache file
FileSys::VectorVfsFile precompiled_cache_virtual_file;
// Stores the current offset of the precompiled cache file for IO purposes
- std::size_t precompiled_cache_virtual_file_offset;
+ std::size_t precompiled_cache_virtual_file_offset = 0;
// The cache has been loaded at boot
bool tried_to_load{};