diff options
| author | 2020-08-03 11:28:18 -0400 | |
|---|---|---|
| committer | 2020-08-03 11:54:04 -0400 | |
| commit | b249e4e0ce15c44bd0d917a17f79510af868173b (patch) | |
| tree | d4dc63a692c446e87ee614481030af16385e88ba /src/video_core/gpu.cpp | |
| parent | ipc: Allow all trivially copyable objects to be passed directly into WriteBuf... (diff) | |
| download | yuzu-b249e4e0ce15c44bd0d917a17f79510af868173b.tar.gz yuzu-b249e4e0ce15c44bd0d917a17f79510af868173b.tar.xz yuzu-b249e4e0ce15c44bd0d917a17f79510af868173b.zip | |
yuzu: Resolve C++20 deprecation warnings related to lambda captures
C++20 deprecates capturing the this pointer via the '=' capture.
Instead, we replace it or extend the capture specification.
Diffstat (limited to 'src/video_core/gpu.cpp')
| -rw-r--r-- | src/video_core/gpu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index 8e19c3373..512578c8b 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp | |||
| @@ -81,7 +81,7 @@ void GPU::WaitFence(u32 syncpoint_id, u32 value) { | |||
| 81 | } | 81 | } |
| 82 | MICROPROFILE_SCOPE(GPU_wait); | 82 | MICROPROFILE_SCOPE(GPU_wait); |
| 83 | std::unique_lock lock{sync_mutex}; | 83 | std::unique_lock lock{sync_mutex}; |
| 84 | sync_cv.wait(lock, [=]() { return syncpoints[syncpoint_id].load() >= value; }); | 84 | sync_cv.wait(lock, [=, this] { return syncpoints[syncpoint_id].load() >= value; }); |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | void GPU::IncrementSyncPoint(const u32 syncpoint_id) { | 87 | void GPU::IncrementSyncPoint(const u32 syncpoint_id) { |