Return local error type on VR init
This commit is contained in:
@@ -47,7 +47,7 @@ impl From<vr::InitError> for Error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl VR {
|
impl VR {
|
||||||
pub fn new() -> Result<VR, vr::InitError> {
|
pub fn new() -> Result<VR, Error> {
|
||||||
let context = unsafe { vr::init(vr::ApplicationType::Scene)? };
|
let context = unsafe { vr::init(vr::ApplicationType::Scene)? };
|
||||||
Ok(VR {
|
Ok(VR {
|
||||||
system: context.system()?,
|
system: context.system()?,
|
||||||
|
|||||||
Reference in New Issue
Block a user