From beedaa3079119f970fdb1ca51395b343443a6778 Mon Sep 17 00:00:00 2001 From: tpart Date: Thu, 27 Jun 2024 11:50:14 +0200 Subject: Simplify on_vulkan() function + improve accuracy --- client/global.gd | 9 +-------- 1 file changed, 1 insertion(+), 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: -- cgit v1.2.3-70-g09d2