Always render when XR is enabled, even if no OS windows can draw
This commit is contained in:
parent
82cedc83c9
commit
7a5a8597eb
5 changed files with 49 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue