From 316cb5314cec3abc6f8f128a21a1c82e72e4145f Mon Sep 17 00:00:00 2001 From: Krzysztof Wolicki Date: Thu, 18 Jan 2024 21:43:57 +0100 Subject: [PATCH] cimgui metal impl available only when target is Darwin --- src/apprt/embedded.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apprt/embedded.zig b/src/apprt/embedded.zig index 44cc044ce..a622fccc4 100644 --- a/src/apprt/embedded.zig +++ b/src/apprt/embedded.zig @@ -1046,7 +1046,7 @@ pub const Inspector = struct { pub fn deinit(self: Backend) void { switch (self) { - .metal => cimgui.c.ImGui_ImplMetal_Shutdown(), + .metal => if (builtin.target.isDarwin()) cimgui.c.ImGui_ImplMetal_Shutdown(), } } };