Merge pull request #1326 from der-teufel-programming/libghostty-on-windows

cimgui metal impl available only when target is Darwin
This commit is contained in:
Mitchell Hashimoto
2024-01-18 13:10:05 -08:00
committed by GitHub

View File

@ -1046,7 +1046,7 @@ pub const Inspector = struct {
pub fn deinit(self: Backend) void { pub fn deinit(self: Backend) void {
switch (self) { switch (self) {
.metal => cimgui.c.ImGui_ImplMetal_Shutdown(), .metal => if (builtin.target.isDarwin()) cimgui.c.ImGui_ImplMetal_Shutdown(),
} }
} }
}; };