From c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c Mon Sep 17 00:00:00 2001 From: tpart Date: Wed, 26 Jun 2024 22:46:41 +0200 Subject: Fix colors on OpenGL --- client/global.gd | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'client/global.gd') diff --git a/client/global.gd b/client/global.gd index ee1e3e96..42a5eac2 100644 --- a/client/global.gd +++ b/client/global.gd @@ -72,6 +72,16 @@ func load_dict(path: String, default: Dictionary) -> Dictionary: print("Loaded dict: ", res) 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 + func focus_first_button(node: Node) -> bool: if node is Button: node.grab_focus() -- cgit v1.2.3-70-g09d2