diff options
author | Subv <subv2112@gmail.com> | 2018-11-30 22:06:49 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-11-30 22:06:49 +0100 |
commit | 583bd20f02fabb2b41f42d2ae8feb1994c0e4fb4 (patch) | |
tree | f1bafdba579c4f930828f51df717d56c62d3d7a8 /src/core/hle | |
parent | configure_input: Amend clang-format discrepancies (diff) | |
download | yuzu-583bd20f02fabb2b41f42d2ae8feb1994c0e4fb4.tar yuzu-583bd20f02fabb2b41f42d2ae8feb1994c0e4fb4.tar.gz yuzu-583bd20f02fabb2b41f42d2ae8feb1994c0e4fb4.tar.bz2 yuzu-583bd20f02fabb2b41f42d2ae8feb1994c0e4fb4.tar.lz yuzu-583bd20f02fabb2b41f42d2ae8feb1994c0e4fb4.tar.xz yuzu-583bd20f02fabb2b41f42d2ae8feb1994c0e4fb4.tar.zst yuzu-583bd20f02fabb2b41f42d2ae8feb1994c0e4fb4.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/service/vi/vi.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 5120abfff..412d5b0c9 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp @@ -542,6 +542,8 @@ private: // Repeat TransactParcel DequeueBuffer when a buffer is available auto buffer_queue = nv_flinger->GetBufferQueue(id); std::optional<u32> slot = buffer_queue->DequeueBuffer(width, height); + ASSERT_MSG(slot != std::nullopt, "Could not dequeue buffer."); + IGBPDequeueBufferResponseParcel response{*slot}; ctx.WriteBuffer(response.Serialize()); IPC::ResponseBuilder rb{ctx, 2}; |