You've already forked godot
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user