diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-20 06:06:46 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-03-25 02:13:33 +0100 |
commit | ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173 (patch) | |
tree | 51dd49fec795ed3d2e4db833e191e5b142f1fe8b /src/core/hle/service/nvflinger/buffer_queue_core.cpp | |
parent | hle: nvflinger: buffer_queue_core: Cleanup locking. (diff) | |
download | yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.tar yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.tar.gz yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.tar.bz2 yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.tar.lz yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.tar.xz yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.tar.zst yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.zip |
Diffstat (limited to 'src/core/hle/service/nvflinger/buffer_queue_core.cpp')
-rw-r--r-- | src/core/hle/service/nvflinger/buffer_queue_core.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue_core.cpp b/src/core/hle/service/nvflinger/buffer_queue_core.cpp index 4a26d2fdc..3f1ce78b0 100644 --- a/src/core/hle/service/nvflinger/buffer_queue_core.cpp +++ b/src/core/hle/service/nvflinger/buffer_queue_core.cpp @@ -116,10 +116,10 @@ void BufferQueueCore::FreeAllBuffersLocked() { } } -bool BufferQueueCore::StillTracking(const BufferItem* item) const { - const BufferSlot& slot = slots[item->slot]; +bool BufferQueueCore::StillTracking(const BufferItem& item) const { + const BufferSlot& slot = slots[item.slot]; - return (slot.graphic_buffer != nullptr) && (item->graphic_buffer == slot.graphic_buffer); + return (slot.graphic_buffer != nullptr) && (item.graphic_buffer == slot.graphic_buffer); } void BufferQueueCore::WaitWhileAllocatingLocked() const { |