Cleanup OpenXR on initialisation failure

This commit is contained in:
Bastiaan Olij 2022-03-24 22:10:43 +11:00
parent d250f12243
commit c78876f977
5 changed files with 25 additions and 28 deletions

View file

@ -466,7 +466,7 @@ void OpenXRInterface::free_interaction_profiles() {
interaction_profiles.clear();
}
bool OpenXRInterface::initialise_on_startup() const {
bool OpenXRInterface::initialize_on_startup() const {
if (openxr_api == nullptr) {
return false;
} else if (!openxr_api->is_initialized()) {
@ -495,7 +495,7 @@ bool OpenXRInterface::initialize() {
// load up our action sets before setting up our session, note that our profiles are suggestions, OpenXR takes ownership of (re)binding
_load_action_map();
if (!openxr_api->initialise_session()) {
if (!openxr_api->initialize_session()) {
return false;
}