summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorKusok <118438257+kus04e4ek@users.noreply.github.com>2024-07-26 21:30:59 +0800
committerKusok <118438257+kus04e4ek@users.noreply.github.com>2024-07-27 16:17:20 +0800
commitd30c1e6a8f017ce3837fc97c2532508b49891100 (patch)
tree381d30a87a32b93dc1b77edcfa335cda46101097 /main
parente343dbbcc1030f04dc5833f1c19d267a17332ca9 (diff)
downloadredot-engine-d30c1e6a8f017ce3837fc97c2532508b49891100.tar.gz
Fall back to D3D12 if Vulkan is not supported and vice versa
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index e1d53e7f1b..c7c0c08fad 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1956,6 +1956,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
GLOBAL_DEF_RST_NOVAL(PropertyInfo(Variant::STRING, "rendering/rendering_device/driver.android", PROPERTY_HINT_ENUM, driver_hints), default_driver);
GLOBAL_DEF_RST_NOVAL(PropertyInfo(Variant::STRING, "rendering/rendering_device/driver.ios", PROPERTY_HINT_ENUM, driver_hints), default_driver);
GLOBAL_DEF_RST_NOVAL(PropertyInfo(Variant::STRING, "rendering/rendering_device/driver.macos", PROPERTY_HINT_ENUM, driver_hints), default_driver);
+
+ GLOBAL_DEF_RST("rendering/rendering_device/fallback_to_vulkan", true);
+ GLOBAL_DEF_RST("rendering/rendering_device/fallback_to_d3d12", true);
}
{