ImGui.NET
ImGui.NET copied to clipboard
How do I use a BeginCombo?
Every time I use BeginCombo the program just crashes. This is what I have:
ImGui.BeginCombo("##dacombo", "davalue");
ImGui.Selectable("davalue", true);
ImGui.EndCombo();
$ dotnet run
LaserFillPattern: /home/runner/work/ImGui.NET-nativebuild/ImGui.NET-nativebuild/cimgui/imgui/imgui.cpp:12596: void ImGui::EndPopup(): Assertion `window->Flags & ImGuiWindowFlags_Popup' failed.
It certainly doesn't help that the path to imgui.cpp isn't a real path that I could open. That folder doesn't exist. /home/runner/ already doesn't exist.
I figured it out, I have to check the result of BeginCombo.