mirror of
https://github.com/mii443/rust-openvr.git
synced 2025-08-23 00:35:31 +00:00
Safety fixes
For OpenVR needs to be both initialized before Vulkan is, and shut down before Vulkan is.
This commit is contained in:
@ -16,7 +16,7 @@ fn print_matrix_4x3(offset: u32, mat: [[f32; 4]; 3]) {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let context = match openvr::init(openvr::ApplicationType::Other) {
|
||||
let context = match unsafe { openvr::init(openvr::ApplicationType::Other) } {
|
||||
Ok(ivr) => ivr,
|
||||
Err(err) => {
|
||||
println!("Failed to initialize openvr {:?}", err);
|
||||
|
Reference in New Issue
Block a user