Return local error type on VR init

This commit is contained in:
2018-08-14 15:25:44 -07:00
parent 7ac96862eb
commit f40786931e

View File

@@ -47,7 +47,7 @@ impl From<vr::InitError> for Error {
}
impl VR {
pub fn new() -> Result<VR, vr::InitError> {
pub fn new() -> Result<VR, Error> {
let context = unsafe { vr::init(vr::ApplicationType::Scene)? };
Ok(VR {
system: context.system()?,