diff options
author | bunnei <bunneidev@gmail.com> | 2019-10-16 16:34:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-16 16:34:48 +0200 |
commit | ef9b31783d2c6af6ec21e5a8a4a9de4e340295c7 (patch) | |
tree | ccf16ff57bd3213bd364c6d96e1e702fe9e961a0 /src/core/hle/service/nvdrv/interface.cpp | |
parent | Merge pull request #2984 from lioncash/fallthrough2 (diff) | |
parent | AsyncGpu: Address Feedback (diff) | |
download | yuzu-ef9b31783d2c6af6ec21e5a8a4a9de4e340295c7.tar yuzu-ef9b31783d2c6af6ec21e5a8a4a9de4e340295c7.tar.gz yuzu-ef9b31783d2c6af6ec21e5a8a4a9de4e340295c7.tar.bz2 yuzu-ef9b31783d2c6af6ec21e5a8a4a9de4e340295c7.tar.lz yuzu-ef9b31783d2c6af6ec21e5a8a4a9de4e340295c7.tar.xz yuzu-ef9b31783d2c6af6ec21e5a8a4a9de4e340295c7.tar.zst yuzu-ef9b31783d2c6af6ec21e5a8a4a9de4e340295c7.zip |
Diffstat (limited to 'src/core/hle/service/nvdrv/interface.cpp')
-rw-r--r-- | src/core/hle/service/nvdrv/interface.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/nvdrv/interface.cpp b/src/core/hle/service/nvdrv/interface.cpp index 5e0c23602..68d139cfb 100644 --- a/src/core/hle/service/nvdrv/interface.cpp +++ b/src/core/hle/service/nvdrv/interface.cpp @@ -134,7 +134,9 @@ void NVDRV::QueryEvent(Kernel::HLERequestContext& ctx) { IPC::ResponseBuilder rb{ctx, 3, 1}; rb.Push(RESULT_SUCCESS); if (event_id < MaxNvEvents) { - rb.PushCopyObjects(nvdrv->GetEvent(event_id)); + auto event = nvdrv->GetEvent(event_id); + event->Clear(); + rb.PushCopyObjects(event); rb.Push<u32>(NvResult::Success); } else { rb.Push<u32>(0); |