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(), } } };