summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvflinger
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-07-01 17:10:27 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-07-05 21:49:33 +0200
commitf3a39e0c9ce8468859da12e35a52fa088e264d28 (patch)
tree1b8213a87e7cda7ccb5be0828770415d2d78000e /src/core/hle/service/nvflinger
parentNVServices: Styling, define constructors as explicit and corrections (diff)
downloadyuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar
yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.gz
yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.bz2
yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.lz
yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.xz
yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.zst
yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.zip
Diffstat (limited to 'src/core/hle/service/nvflinger')
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue.cpp1
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) {