aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/global.gd9
1 files changed, 1 insertions, 8 deletions
diff --git a/client/global.gd b/client/global.gd
index 42a5eac2..f26a066f 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -73,14 +73,7 @@ func load_dict(path: String, default: Dictionary) -> Dictionary:
return res
func on_vulkan() -> bool:
- if OS.has_feature("web"):
- return false
- elif OS.has_feature("pc"):
- return true
- elif OS.has_feature("mobile"):
- return false
- push_error("Unknown platform, assuming vulkan")
- return true
+ return ProjectSettings.get_setting("rendering/rendering_device/driver") == "vulkan"
func focus_first_button(node: Node) -> bool:
if node is Button: