summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Liam2024-01-15 21:53:20 -0500
committerGravatar Liam2024-01-18 21:12:30 -0500
commit04867e2456d926364ede540954767cc39c58e464 (patch)
tree328ac4e2a5eeb52f2adcfaadcfa05231d939b8f2 /src
parentnvdrv: clean up preallocation (diff)
downloadyuzu-04867e2456d926364ede540954767cc39c58e464.tar.gz
yuzu-04867e2456d926364ede540954767cc39c58e464.tar.xz
yuzu-04867e2456d926364ede540954767cc39c58e464.zip
nvhost_vic: use map erase by key
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_vic.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp b/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp
index 263061f1d..bf090f5eb 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp
@@ -78,10 +78,7 @@ void nvhost_vic::OnClose(DeviceFD fd) {
78 if (iter != host1x_file.fd_to_id.end()) { 78 if (iter != host1x_file.fd_to_id.end()) {
79 system.GPU().ClearCdmaInstance(iter->second); 79 system.GPU().ClearCdmaInstance(iter->second);
80 } 80 }
81 auto it = sessions.find(fd); 81 sessions.erase(fd);
82 if (it != sessions.end()) {
83 sessions.erase(it);
84 }
85} 82}
86 83
87} // namespace Service::Nvidia::Devices 84} // namespace Service::Nvidia::Devices