1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Always render when XR is enabled, even if no OS windows can draw

This commit is contained in:
David Snopek
2024-07-15 16:58:21 -05:00
parent 82cedc83c9
commit 7a5a8597eb
5 changed files with 49 additions and 1 deletions

View File

@@ -651,6 +651,10 @@ bool OpenXRInterface::initialize() {
// make this our primary interface
xr_server->set_primary_interface(this);
// Register an additional output with the display server, so rendering won't
// be skipped if no windows are visible.
DisplayServer::get_singleton()->register_additional_output(this);
initialized = true;
return initialized;
@@ -674,6 +678,8 @@ void OpenXRInterface::uninitialize() {
}
}
DisplayServer::get_singleton()->unregister_additional_output(this);
initialized = false;
}