summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-08-03 15:24:15 +0200
committerLioncash <mathew1800@gmail.com>2020-08-03 15:31:51 +0200
commit24bd068a0882d3956b10edbbf43888b5cbfadee5 (patch)
treec31ad972be1b7fc2bcc287953e806b19d7ee6a0b /src/core/hle
parentMerge pull request #4437 from lioncash/ptr (diff)
downloadyuzu-24bd068a0882d3956b10edbbf43888b5cbfadee5.tar
yuzu-24bd068a0882d3956b10edbbf43888b5cbfadee5.tar.gz
yuzu-24bd068a0882d3956b10edbbf43888b5cbfadee5.tar.bz2
yuzu-24bd068a0882d3956b10edbbf43888b5cbfadee5.tar.lz
yuzu-24bd068a0882d3956b10edbbf43888b5cbfadee5.tar.xz
yuzu-24bd068a0882d3956b10edbbf43888b5cbfadee5.tar.zst
yuzu-24bd068a0882d3956b10edbbf43888b5cbfadee5.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue.cpp b/src/core/hle/service/nvflinger/buffer_queue.cpp
index caca80dde..b72369238 100644
--- a/src/core/hle/service/nvflinger/buffer_queue.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue.cpp
@@ -24,13 +24,13 @@ BufferQueue::~BufferQueue() = default;
void BufferQueue::SetPreallocatedBuffer(u32 slot, const IGBPBuffer& igbp_buffer) {
LOG_WARNING(Service, "Adding graphics buffer {}", slot);
- Buffer buffer{};
- buffer.slot = slot;
- buffer.igbp_buffer = igbp_buffer;
- buffer.status = Buffer::Status::Free;
free_buffers.push_back(slot);
+ queue.push_back({
+ .slot = slot,
+ .status = Buffer::Status::Free,
+ .igbp_buffer = igbp_buffer,
+ });
- queue.emplace_back(buffer);
buffer_wait_event.writable->Signal();
}