diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-18 15:38:14 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-18 15:38:14 +0200 |
commit | 1e81a946cc8e7c913c1267a4489f8b0f3fffd5b1 (patch) | |
tree | 258645a8837132523ccf720d4b757252e51fc8dc /main | |
parent | d12030e6d7bb73cc182482ad120e2f33ddd69b7c (diff) | |
parent | 7a5a8597eb81b20b14d3ab1f8b2d6dace49a2603 (diff) | |
download | redot-engine-1e81a946cc8e7c913c1267a4489f8b0f3fffd5b1.tar.gz |
Merge pull request #94412 from dsnopek/xr-always-render
Always render when XR is enabled, even if no OS windows can draw
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index 1cabe43065..86abf94c0a 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -4107,7 +4107,7 @@ bool Main::iteration() { RenderingServer::get_singleton()->sync(); //sync if still drawing from previous frames. - if (DisplayServer::get_singleton()->can_any_window_draw() && + if ((DisplayServer::get_singleton()->can_any_window_draw() || DisplayServer::get_singleton()->has_additional_outputs()) && RenderingServer::get_singleton()->is_render_loop_enabled()) { if ((!force_redraw_requested) && OS::get_singleton()->is_in_low_processor_usage_mode()) { if (RenderingServer::get_singleton()->has_changed()) { |