mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Cleanup OpenXR on initialisation failure
This commit is contained in:
parent
d250f12243
commit
c78876f977
5 changed files with 25 additions and 28 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue