Skip to content

Commit

Permalink
Merge pull request #29 from DanielQuick/ignore-panic-when-removing-he…
Browse files Browse the repository at this point in the history
…adset

Ignore end_frame error
  • Loading branch information
MalekiRe authored Nov 7, 2023
2 parents fc2a705 + 19f4741 commit e1fb77b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(e) => warn!("error: {}", e),
}
}
}

Expand Down

0 comments on commit e1fb77b

Please sign in to comment.