diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-01 11:10:27 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-05 15:49:33 -0400 |
| commit | f3a39e0c9ce8468859da12e35a52fa088e264d28 (patch) | |
| tree | 1b8213a87e7cda7ccb5be0828770415d2d78000e /src/core/hle/service/nvflinger/buffer_queue.cpp | |
| parent | d20ede40b1e9cd0539982fb1feb3b13af3501ea2 (diff) | |
NVServices: Address Feedback
Diffstat (limited to 'src/core/hle/service/nvflinger/buffer_queue.cpp')
| -rw-r--r-- | src/core/hle/service/nvflinger/buffer_queue.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue.cpp b/src/core/hle/service/nvflinger/buffer_queue.cpp index ddc224f2c..e1a07d3ee 100644 --- a/src/core/hle/service/nvflinger/buffer_queue.cpp +++ b/src/core/hle/service/nvflinger/buffer_queue.cpp @@ -80,6 +80,7 @@ void BufferQueue::QueueBuffer(u32 slot, BufferTransformFlags transform, std::optional<std::reference_wrapper<const BufferQueue::Buffer>> BufferQueue::AcquireBuffer() { auto itr = queue.end(); + // Iterate to find a queued buffer matching the requested slot. while (itr == queue.end() && !queue_sequence.empty()) { u32 slot = queue_sequence.front(); itr = std::find_if(queue.begin(), queue.end(), [&slot](const Buffer& buffer) { |
