aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nvflinger/nvflinger.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-11-28 19:15:24 -0500
committerLioncash <mathew1800@gmail.com>2022-11-28 19:16:20 -0500
commitae74f46e787e426610b9d9523db9e9981fede18c (patch)
tree44192ba1abf56f5edccb46e640823cc6c353107e /src/core/hle/service/nvflinger/nvflinger.cpp
parent3020f72b0ced962115dec59def983eb70f7c004f (diff)
buffer_item_consumer: Pass fence by const-ref in ReleaseBuffer()
This isn't directly modified. Also allows rvalues to be used with it.
Diffstat (limited to 'src/core/hle/service/nvflinger/nvflinger.cpp')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index c3af12c90..d1cbadde4 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -307,8 +307,7 @@ void NVFlinger::Compose() {
swap_interval = buffer.swap_interval;
- auto fence = android::Fence::NoFence();
- layer.GetConsumer().ReleaseBuffer(buffer, fence);
+ layer.GetConsumer().ReleaseBuffer(buffer, android::Fence::NoFence());
}
}