apprt/embedded: also must render imgui multiple times

This commit is contained in:
Mitchell Hashimoto
2023-10-21 15:49:04 -07:00
parent a1a398be4d
commit c1fade6e5b

View File

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