summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-18 15:38:14 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-18 15:38:14 +0200
commit1e81a946cc8e7c913c1267a4489f8b0f3fffd5b1 (patch)
tree258645a8837132523ccf720d4b757252e51fc8dc /main
parentd12030e6d7bb73cc182482ad120e2f33ddd69b7c (diff)
parent7a5a8597eb81b20b14d3ab1f8b2d6dace49a2603 (diff)
downloadredot-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.cpp2
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()) {