diff --git a/src/apprt/embedded.zig b/src/apprt/embedded.zig index 8d01db594..6c929b9f5 100644 --- a/src/apprt/embedded.zig +++ b/src/apprt/embedded.zig @@ -919,8 +919,10 @@ pub const Inspector = struct { assert(self.backend == .metal); //log.debug("render", .{}); - // Setup our imgui frame - { + // Setup our imgui frame. We need to render multiple frames to ensure + // ImGui completes all its state processing. I don't know how to fix + // this. + for (0..2) |_| { cimgui.c.ImGui_ImplMetal_NewFrame(desc.value); try self.newFrame(); cimgui.c.igNewFrame();