diff options
author | Liam <byteslice@airmail.cc> | 2023-10-17 16:00:25 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-10-17 16:00:25 +0200 |
commit | d9dde7e6f3a90f58d642808900ddd558da21f762 (patch) | |
tree | ee63e7760efb66b738ef4981751d6fd9bbbbe9a8 /src/video_core/fence_manager.h | |
parent | Merge pull request #11788 from Squall-Leonhart/IFREMOVED (diff) | |
download | yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar.gz yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar.bz2 yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar.lz yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar.xz yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar.zst yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/fence_manager.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/fence_manager.h b/src/video_core/fence_manager.h index 805a89900..c0e6471fe 100644 --- a/src/video_core/fence_manager.h +++ b/src/video_core/fence_manager.h @@ -86,7 +86,10 @@ public: uncommitted_operations.emplace_back(std::move(func)); } pending_operations.emplace_back(std::move(uncommitted_operations)); - QueueFence(new_fence); + { + std::scoped_lock lock{buffer_cache.mutex, texture_cache.mutex}; + QueueFence(new_fence); + } if (!delay_fence) { func(); } |