diff options
author | bunnei <bunneidev@gmail.com> | 2018-12-02 04:25:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-02 04:25:10 +0100 |
commit | 97e73591e3fb2705cbbd4fcbc33267d598fbba93 (patch) | |
tree | 55756ed97c50e705d5c1d13ec9c8383ff8323538 /src/core/hle/service | |
parent | Fix debug build (diff) | |
parent | Services/VI: Dereferencing an uninitialized std::optional is undefined behavior. (diff) | |
download | yuzu-97e73591e3fb2705cbbd4fcbc33267d598fbba93.tar yuzu-97e73591e3fb2705cbbd4fcbc33267d598fbba93.tar.gz yuzu-97e73591e3fb2705cbbd4fcbc33267d598fbba93.tar.bz2 yuzu-97e73591e3fb2705cbbd4fcbc33267d598fbba93.tar.lz yuzu-97e73591e3fb2705cbbd4fcbc33267d598fbba93.tar.xz yuzu-97e73591e3fb2705cbbd4fcbc33267d598fbba93.tar.zst yuzu-97e73591e3fb2705cbbd4fcbc33267d598fbba93.zip |
Diffstat (limited to 'src/core/hle/service')
-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}; |