fixed stuff for steamvr openxr to not crash

This commit is contained in:
MalekiRe
2023-09-09 21:43:06 -07:00
parent 6d60b55b02
commit aca80bade3
4 changed files with 21 additions and 8 deletions

View File

@@ -134,6 +134,10 @@ impl<G: xr::Graphics> SwapchainInner<G> {
},
};
let swapchain = self.handle.lock().unwrap();
if views.len() == 0 {
warn!("views are len of 0");
return Ok(())
}
self.stream.lock().unwrap().end(
predicted_display_time,
environment_blend_mode,