cimgui metal impl available only when target is Darwin

This commit is contained in:
Krzysztof Wolicki
2024-01-18 21:43:57 +01:00
parent 4f9559afd5
commit 316cb5314c

View File

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