summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-03-21 17:51:17 +0100
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-04-16 14:25:36 +0200
commitabe7ec1543db412651a9a9a3f7af2344bc08ceb1 (patch)
tree4b60b2343badafc720e4d4307b72d3e99b99b467 /main
parent658e97c93aa2533cb7b12f05e62dcf6864e7acbe (diff)
downloadredot-engine-abe7ec1543db412651a9a9a3f7af2344bc08ceb1.tar.gz
Fix some build errors with `disable_3d=yes`
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index a1031b5385..ed74094c9e 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -697,7 +697,9 @@ Error Main::test_setup() {
/** INITIALIZE SERVERS **/
register_server_types();
+#ifndef _3D_DISABLED
XRServer::set_xr_mode(XRServer::XRMODE_OFF); // Skip in tests.
+#endif // _3D_DISABLED
initialize_modules(MODULE_INITIALIZATION_LEVEL_SERVERS);
GDExtensionManager::get_singleton()->initialize_extensions(GDExtension::INITIALIZATION_LEVEL_SERVERS);