From 42adcea19e6d2be472bbc1bc5e01e7ef4ad4bd52 Mon Sep 17 00:00:00 2001 From: DanielQuick Date: Tue, 7 Nov 2023 11:29:16 -0600 Subject: [PATCH 1/2] ignore end_frame error --- src/lib.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6a1d2c23..5d0f35d0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -330,15 +330,18 @@ pub fn end_frame( } { let _span = info_span!("xr_end_frame").entered(); - swapchain + let result = swapchain .end( xr_frame_state.lock().unwrap().predicted_display_time, &*views.lock().unwrap(), &input.stage, **resolution, **environment_blend_mode, - ) - .unwrap(); + ); + match result { + Ok(_) => {}, + Err(_) => {}, + } } } From 19f4741cefbee75c501cfb070da51576e99d34d3 Mon Sep 17 00:00:00 2001 From: DanielQuick Date: Tue, 7 Nov 2023 13:46:44 -0600 Subject: [PATCH 2/2] warn instead of ignoring error --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 5d0f35d0..20904f89 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -340,7 +340,7 @@ pub fn end_frame( ); match result { Ok(_) => {}, - Err(_) => {}, + Err(e) => warn!("error: {}", e), } } }