summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2022-12-06 22:20:51 +1100
committerBastiaan Olij <mux213@gmail.com>2022-12-06 22:37:33 +1100
commit484cd90d29781cf4523f886fcf76d27505c8a4d8 (patch)
tree89dbb73f381efd319edd944bab4d8d08778fe8d7 /main
parentdeb760fb1b607039a0094bce1c7c1d1145b877e1 (diff)
Make submitting depth buffer in OpenXR optional
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 c2e2238482..9c0c883544 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1862,6 +1862,8 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
GLOBAL_DEF_BASIC("xr/openxr/reference_space", "1");
ProjectSettings::get_singleton()->set_custom_property_info("xr/openxr/reference_space", PropertyInfo(Variant::INT, "xr/openxr/reference_space", PROPERTY_HINT_ENUM, "Local,Stage"));
+ GLOBAL_DEF_BASIC("xr/openxr/submit_depth_buffer", false);
+
#ifdef TOOLS_ENABLED
// Disabled for now, using XR inside of the editor we'll be working on during the coming months.