summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvflinger/nvflinger.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-01-04 06:45:06 +0100
committerbunnei <bunneidev@gmail.com>2020-01-04 06:45:06 +0100
commit64c56315793d2b6dbf7a55f99d4bcc51929f03cb (patch)
tree4cd4a922499783c6369a60068442dee51cdfffe3 /src/core/hle/service/nvflinger/nvflinger.cpp
parentMerge pull request #3247 from FernandoS27/remap-fix (diff)
downloadyuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar
yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.gz
yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.bz2
yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.lz
yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.xz
yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.zst
yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.zip
Diffstat (limited to 'src/core/hle/service/nvflinger/nvflinger.cpp')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index 52623cf89..a58ea9c59 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -88,6 +88,12 @@ std::optional<u64> NVFlinger::CreateLayer(u64 display_id) {
return layer_id;
}
+void NVFlinger::CloseLayer(u64 layer_id) {
+ for (auto& display : displays) {
+ display.CloseLayer(layer_id);
+ }
+}
+
std::optional<u32> NVFlinger::FindBufferQueueId(u64 display_id, u64 layer_id) const {
const auto* const layer = FindLayer(display_id, layer_id);