perform a proper oculus teardown if it isn't present

This commit is contained in:
Stephen Birarda 2014-01-15 16:52:03 -08:00
parent 106c8f9f22
commit 0f7d86a111

View file

@ -62,6 +62,9 @@ void OculusManager::connect() {
_scaleLocation = _program.uniformLocation("scale");
_scaleInLocation = _program.uniformLocation("scaleIn");
_hmdWarpParamLocation = _program.uniformLocation("hmdWarpParam");
} else {
_deviceManager.Clear();
System::Destroy();
}
#endif
}