summaryrefslogtreecommitdiff
path: root/src/core/hle/service/nvflinger
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2022-06-27 21:45:33 +0200
committerGravatar Fernando Sahmkow2022-10-06 21:00:53 +0200
commit8a372035db35465b8241d1e13eeb979e8682bb3f (patch)
tree80ca9787dd65b32b028e429e0c591473ee1d2095 /src/core/hle/service/nvflinger
parentCore: Fix get nvmap object random crash (diff)
downloadyuzu-8a372035db35465b8241d1e13eeb979e8682bb3f.tar.gz
yuzu-8a372035db35465b8241d1e13eeb979e8682bb3f.tar.xz
yuzu-8a372035db35465b8241d1e13eeb979e8682bb3f.zip
Nvflinger: correct duplication.
Diffstat (limited to 'src/core/hle/service/nvflinger')
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_consumer.cpp2
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_producer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp b/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp
index a0330ab4a..1ce67c771 100644
--- a/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp
@@ -136,7 +136,7 @@ Status BufferQueueConsumer::ReleaseBuffer(s32 slot, u64 frame_number, const Fenc
136 136
137 slots[slot].buffer_state = BufferState::Free; 137 slots[slot].buffer_state = BufferState::Free;
138 138
139 nvmap.FreeHandle(slots[slot].graphic_buffer->BufferId(), false); 139 nvmap.FreeHandle(slots[slot].graphic_buffer->BufferId(), true);
140 140
141 listener = core->connected_producer_listener; 141 listener = core->connected_producer_listener;
142 142
diff --git a/src/core/hle/service/nvflinger/buffer_queue_producer.cpp b/src/core/hle/service/nvflinger/buffer_queue_producer.cpp
index a4e46964c..d4ab23a10 100644
--- a/src/core/hle/service/nvflinger/buffer_queue_producer.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue_producer.cpp
@@ -532,7 +532,7 @@ Status BufferQueueProducer::QueueBuffer(s32 slot, const QueueBufferInput& input,
532 item.is_droppable = core->dequeue_buffer_cannot_block || async; 532 item.is_droppable = core->dequeue_buffer_cannot_block || async;
533 item.swap_interval = swap_interval; 533 item.swap_interval = swap_interval;
534 534
535 nvmap.DuplicateHandle(item.graphic_buffer->BufferId()); 535 nvmap.DuplicateHandle(item.graphic_buffer->BufferId(), true);
536 536
537 sticky_transform = sticky_transform_; 537 sticky_transform = sticky_transform_;
538 538