diff options
author | FengChen <vonchenplus@gmail.com> | 2022-08-10 04:10:32 +0200 |
---|---|---|
committer | FengChen <vonchenplus@gmail.com> | 2022-08-25 06:45:58 +0200 |
commit | b2a6dde4380a5526e9d936f92a9e3d6ad9393bfa (patch) | |
tree | 0606caece955ac68899b71325b769a174af2f9f4 /src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | |
parent | Merge pull request #8734 from liamwhite/bors-is-my-best-friend (diff) | |
download | yuzu-b2a6dde4380a5526e9d936f92a9e3d6ad9393bfa.tar yuzu-b2a6dde4380a5526e9d936f92a9e3d6ad9393bfa.tar.gz yuzu-b2a6dde4380a5526e9d936f92a9e3d6ad9393bfa.tar.bz2 yuzu-b2a6dde4380a5526e9d936f92a9e3d6ad9393bfa.tar.lz yuzu-b2a6dde4380a5526e9d936f92a9e3d6ad9393bfa.tar.xz yuzu-b2a6dde4380a5526e9d936f92a9e3d6ad9393bfa.tar.zst yuzu-b2a6dde4380a5526e9d936f92a9e3d6ad9393bfa.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_pipeline_cache.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index 43cc94fab..3adad5af4 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -434,7 +434,9 @@ void PipelineCache::LoadDiskResources(u64 title_id, std::stop_token stop_loading state.statistics.get(), false)}; std::scoped_lock lock{state.mutex}; - graphics_cache.emplace(key, std::move(pipeline)); + if (pipeline) { + graphics_cache.emplace(key, std::move(pipeline)); + } ++state.built; if (state.has_loaded) { callback(VideoCore::LoadCallbackStage::Build, state.built, state.total); |