diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-01 05:36:11 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-01 05:36:11 +0200 |
commit | 4aa081b4e774436d7a4ba70a42a14ff5b1869662 (patch) | |
tree | 5dcaada5d1f568f85fd2f006eafbecd148916c34 /src/video_core/renderer_opengl | |
parent | Merge pull request #2406 from FearlessTobi/port-3839 (diff) | |
download | yuzu-4aa081b4e774436d7a4ba70a42a14ff5b1869662.tar yuzu-4aa081b4e774436d7a4ba70a42a14ff5b1869662.tar.gz yuzu-4aa081b4e774436d7a4ba70a42a14ff5b1869662.tar.bz2 yuzu-4aa081b4e774436d7a4ba70a42a14ff5b1869662.tar.lz yuzu-4aa081b4e774436d7a4ba70a42a14ff5b1869662.tar.xz yuzu-4aa081b4e774436d7a4ba70a42a14ff5b1869662.tar.zst yuzu-4aa081b4e774436d7a4ba70a42a14ff5b1869662.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_disk_cache.cpp | 5 |
1 files changed, 4 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 ed7afc4a0..254c0d499 100644 --- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp @@ -475,7 +475,10 @@ void ShaderDiskCacheOpenGL::SaveUsage(const ShaderDiskCacheUsage& usage) { ASSERT_MSG(it != transferable.end(), "Saving shader usage without storing raw previously"); auto& usages{it->second}; - ASSERT(usages.find(usage) == usages.end()); + if (usages.find(usage) != usages.end()) { + // Skip this variant since the shader is already stored. + return; + } usages.insert(usage); FileUtil::IOFile file = AppendTransferableFile(); |