aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/vi/vi.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-16 13:57:42 -0500
committerGitHub <noreply@github.com>2023-12-16 13:57:42 -0500
commit4bf1f217ae28357e753f7e9cadd0a1baf05d2192 (patch)
treee79b98addebcfb55e228248571891bf5ccc25706 /src/core/hle/service/vi/vi.cpp
parenta093f3d47a418e1eeb7ea091f4950bfd0e1ee028 (diff)
parentadc307961357243a67ed4400d18ec9979a0c55db (diff)
Merge pull request #12331 from liamwhite/layer-confusion
vi: fix confusion between closing and destroying layers
Diffstat (limited to 'src/core/hle/service/vi/vi.cpp')
-rw-r--r--src/core/hle/service/vi/vi.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index b1bfb9898..9ab8788e3 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -719,6 +719,8 @@ private:
return;
}
+ nv_flinger.OpenLayer(layer_id);
+
android::OutputParcel parcel;
parcel.WriteInterface(NativeWindow{*buffer_queue_id});
@@ -783,6 +785,7 @@ private:
const u64 layer_id = rp.Pop<u64>();
LOG_WARNING(Service_VI, "(STUBBED) called. layer_id=0x{:016X}", layer_id);
+ nv_flinger.DestroyLayer(layer_id);
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);