Closed Sensuikan-U511 closed 8 months ago
My syntax was wrong. I did not realise I needed to wrap the tab bars and buttons in if statements. Problem solved, sorry for the bother (but I do wish there was documentation other than digging through the demo .cpp!).
Version/Branch of Dear ImGui:
Version 1.90, master
Back-ends:
imgui_impl_opengl3.cpp
Compiler, OS:
Windows 11, Visual Studio 2022
Full config/build information:
No response
Details:
My Issue:
If I use one BeginTabItem(), it works. If I use two BeginTabItem(), it crashes. Two different failure modes possible.
If I use an EndTabItem() before the second BeginTabItem(), the program fails on execution with error: "Assertion failed: window->IDStack.Size > 1, file [path to imgui.cpp], line 8021".
If I don't use an EndTabItem(), then both buttons will show up in the first tab even with the second button under the second BeginTabItem(). Both tabs will also show up, but clicking the second tab will crash the program, with the same error as above.
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code: