summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2024-07-15 16:58:21 -0500
committerDavid Snopek <dsnopek@gmail.com>2024-07-17 08:19:21 -0500
commit7a5a8597eb81b20b14d3ab1f8b2d6dace49a2603 (patch)
tree1dcf18139318e845edddfe7559696f2c56316d0d /main
parent82cedc83c9069125207c128f9a07ce3d82c317cc (diff)
downloadredot-engine-7a5a8597eb81b20b14d3ab1f8b2d6dace49a2603.tar.gz
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 060b3fe2f6..a833387630 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -4108,7 +4108,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()) {