openxr: fix segfault

This commit is contained in:
galister
2024-02-22 02:01:15 +01:00
parent 61a978bfb4
commit b93ddfce5b
4 changed files with 48 additions and 41 deletions

View File

@@ -182,7 +182,7 @@ pub fn openvr_run(running: Arc<AtomicBool>) -> Result<(), BackendError> {
TaskType::DropOverlay(sel) => {
if let Some(o) = overlays.mut_by_selector(&sel) {
o.destroy(&mut overlay_mngr);
overlays.drop_by_selector(&sel);
overlays.remove_by_selector(&sel);
}
}
}