summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-29 15:17:26 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-29 15:17:26 +0200
commit9a8f18b9bf5a4de2cb339f7d17992053a776b57a (patch)
tree7c26ce714ec4519524baf97d80001ca53ef8f7d3 /main
parentf9474f0925500a536edceb5564dbf2808496e37d (diff)
parentd30c1e6a8f017ce3837fc97c2532508b49891100 (diff)
downloadredot-engine-9a8f18b9bf5a4de2cb339f7d17992053a776b57a.tar.gz
Merge pull request #94796 from kus04e4ek/backfall
Windows: 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 059172b14e..e42469b51b 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);
}
{