Setting ImGuiContext for ImPlot

internals
Alex Hildebrand 4 years ago
parent 3c148950d9
commit 7b26ec8b7f
  1. 1
      src/ImGui.NET.SampleProgram/ImGuiController.cs

@ -63,6 +63,7 @@ namespace ImGuiNET
ImGui.SetCurrentContext(context); ImGui.SetCurrentContext(context);
IntPtr implotContext = ImPlot.CreateContext(); IntPtr implotContext = ImPlot.CreateContext();
ImPlot.SetCurrentContext(implotContext); ImPlot.SetCurrentContext(implotContext);
ImPlot.SetImGuiContext(context);
var fonts = ImGui.GetIO().Fonts; var fonts = ImGui.GetIO().Fonts;
ImGui.GetIO().Fonts.AddFontDefault(); ImGui.GetIO().Fonts.AddFontDefault();

Loading…
Cancel
Save