aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-27 11:49:15 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-27 11:49:15 +0200
commit8895fc5a00e638b9260cc07749085b8c9f4e0459 (patch)
treebfc272beae522e8cb5b2b92a27ea302bb04172b8
parent0fcb42c3012926ae761010624fe63c7f43c3784a (diff)
parentbeedaa3079119f970fdb1ca51395b343443a6778 (diff)
downloadhurrycurry-8895fc5a00e638b9260cc07749085b8c9f4e0459.tar
hurrycurry-8895fc5a00e638b9260cc07749085b8c9f4e0459.tar.bz2
hurrycurry-8895fc5a00e638b9260cc07749085b8c9f4e0459.tar.zst
Merge branch 'master' of codeberg.org:metamuffin/undercooked
-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: