diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-01 17:10:27 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-05 21:49:33 +0200 |
commit | f3a39e0c9ce8468859da12e35a52fa088e264d28 (patch) | |
tree | 1b8213a87e7cda7ccb5be0828770415d2d78000e /src/core/hle/service/vi/vi.cpp | |
parent | NVServices: Styling, define constructors as explicit and corrections (diff) | |
download | yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.gz yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.bz2 yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.lz yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.xz yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.zst yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.zip |
Diffstat (limited to 'src/core/hle/service/vi/vi.cpp')
-rw-r--r-- | src/core/hle/service/vi/vi.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 894bcdc04..199b30635 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp @@ -536,7 +536,7 @@ private: if (result) { // Buffer is available - IGBPDequeueBufferResponseParcel response{(*result).first, *(*result).second}; + IGBPDequeueBufferResponseParcel response{result->first, *result->second}; ctx.WriteBuffer(response.Serialize()); } else { // Wait the current thread until a buffer becomes available @@ -549,8 +549,7 @@ private: auto result = buffer_queue.DequeueBuffer(width, height); ASSERT_MSG(result != std::nullopt, "Could not dequeue buffer."); - IGBPDequeueBufferResponseParcel response{(*result).first, - *(*result).second}; + IGBPDequeueBufferResponseParcel response{result->first, *result->second}; ctx.WriteBuffer(response.Serialize()); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); |