From 58b597c5eca01d3b9d8b2348d879d0340c80f346 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Sun, 6 Oct 2019 17:48:48 -0300 Subject: gl_shader_disk_cache: Properly ignore existing cache Previously old entries where appended to the file even if the shader cache was ignored at boot. Address that issue. --- src/video_core/renderer_opengl/gl_shader_disk_cache.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/video_core/renderer_opengl/gl_shader_disk_cache.h') 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 cc8bbd61e..9595bd71b 100644 --- a/src/video_core/renderer_opengl/gl_shader_disk_cache.h +++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.h @@ -224,9 +224,6 @@ private: bool SaveDecompiledFile(u64 unique_identifier, const std::string& code, const GLShader::ShaderEntries& entries); - /// Returns if the cache can be used - bool IsUsable() const; - /// Opens current game's transferable file and write it's header if it doesn't exist FileUtil::IOFile AppendTransferableFile() const; @@ -297,7 +294,7 @@ private: std::unordered_map> transferable; // The cache has been loaded at boot - bool tried_to_load{}; + bool is_usable{}; }; } // namespace OpenGL -- cgit v1.2.3