mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Cleanup OpenXR on initialisation failure
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user