diff options
| author | Franco M <francomaro@gmail.com> | 2023-10-21 02:25:27 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-21 02:25:27 -0300 |
| commit | b76a1d987ff83b831a19a0c19f9fcd96c504c077 (patch) | |
| tree | 4b08482cc3d34e341d7d8620182854c248f899b5 /src/video_core/fence_manager.h | |
| parent | ae2130470effa72c3ea1ffc045e9b6b2a77b23d3 (diff) | |
| parent | 2e760a98333520f3de1fa7c7a1f9298fd7241ceb (diff) | |
Merge branch 'yuzu-emu:master' into new-shortcut
Diffstat (limited to 'src/video_core/fence_manager.h')
| -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(); } |
