diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-09 08:55:59 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-09 09:08:14 +0200 |
commit | b46a5c42ff93cdbfe4fa00fdb44e97ed7313ac4e (patch) | |
tree | ecbccc2f0366b39a607644293e8ef813abbe0be3 /src/core | |
parent | hle_ipc: Make WriteToOutgoingCommandBuffer()'s reference parameter const (diff) | |
download | yuzu-b46a5c42ff93cdbfe4fa00fdb44e97ed7313ac4e.tar yuzu-b46a5c42ff93cdbfe4fa00fdb44e97ed7313ac4e.tar.gz yuzu-b46a5c42ff93cdbfe4fa00fdb44e97ed7313ac4e.tar.bz2 yuzu-b46a5c42ff93cdbfe4fa00fdb44e97ed7313ac4e.tar.lz yuzu-b46a5c42ff93cdbfe4fa00fdb44e97ed7313ac4e.tar.xz yuzu-b46a5c42ff93cdbfe4fa00fdb44e97ed7313ac4e.tar.zst yuzu-b46a5c42ff93cdbfe4fa00fdb44e97ed7313ac4e.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/nvflinger/buffer_queue.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/service/nvflinger/buffer_queue.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue.cpp b/src/core/hle/service/nvflinger/buffer_queue.cpp index adf180509..ef5713a71 100644 --- a/src/core/hle/service/nvflinger/buffer_queue.cpp +++ b/src/core/hle/service/nvflinger/buffer_queue.cpp @@ -16,7 +16,7 @@ BufferQueue::BufferQueue(u32 id, u64 layer_id) : id(id), layer_id(layer_id) { Kernel::Event::Create(Kernel::ResetType::Sticky, "BufferQueue NativeHandle"); } -void BufferQueue::SetPreallocatedBuffer(u32 slot, IGBPBuffer& igbp_buffer) { +void BufferQueue::SetPreallocatedBuffer(u32 slot, const IGBPBuffer& igbp_buffer) { Buffer buffer{}; buffer.slot = slot; buffer.igbp_buffer = igbp_buffer; diff --git a/src/core/hle/service/nvflinger/buffer_queue.h b/src/core/hle/service/nvflinger/buffer_queue.h index 004170538..f86e1056c 100644 --- a/src/core/hle/service/nvflinger/buffer_queue.h +++ b/src/core/hle/service/nvflinger/buffer_queue.h @@ -72,7 +72,7 @@ public: MathUtil::Rectangle<int> crop_rect; }; - void SetPreallocatedBuffer(u32 slot, IGBPBuffer& buffer); + void SetPreallocatedBuffer(u32 slot, const IGBPBuffer& igbp_buffer); boost::optional<u32> DequeueBuffer(u32 width, u32 height); const IGBPBuffer& RequestBuffer(u32 slot) const; void QueueBuffer(u32 slot, BufferTransformFlags transform, |