From 7b26ec8b7ff24c9949e2372e673a63d313cfd881 Mon Sep 17 00:00:00 2001 From: Alex Hildebrand Date: Sun, 29 Nov 2020 23:55:42 +0100 Subject: [PATCH] Setting ImGuiContext for ImPlot --- src/ImGui.NET.SampleProgram/ImGuiController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ImGui.NET.SampleProgram/ImGuiController.cs b/src/ImGui.NET.SampleProgram/ImGuiController.cs index e252352..5eadc54 100644 --- a/src/ImGui.NET.SampleProgram/ImGuiController.cs +++ b/src/ImGui.NET.SampleProgram/ImGuiController.cs @@ -63,6 +63,7 @@ namespace ImGuiNET ImGui.SetCurrentContext(context); IntPtr implotContext = ImPlot.CreateContext(); ImPlot.SetCurrentContext(implotContext); + ImPlot.SetImGuiContext(context); var fonts = ImGui.GetIO().Fonts; ImGui.GetIO().Fonts.AddFontDefault();