From ce15d1e02600c3931ad08913de76867297c19f85 Mon Sep 17 00:00:00 2001 From: Patrick Dawson Date: Thu, 1 Dec 2022 03:39:59 +0100 Subject: [PATCH] remove unused parameter --- addons/imgui-godot/ImGuiGodot/Internal.cs | 2 +- addons/imgui-godot/ImGuiGodot/InternalViewports.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/imgui-godot/ImGuiGodot/Internal.cs b/addons/imgui-godot/ImGuiGodot/Internal.cs index f3638a7..3112d5a 100644 --- a/addons/imgui-godot/ImGuiGodot/Internal.cs +++ b/addons/imgui-godot/ImGuiGodot/Internal.cs @@ -223,7 +223,7 @@ public static void Init(IRenderer renderer) } Renderer.Init(io); - InternalViewports.Init(io); + InternalViewports.Init(); } public static void ResetFonts() diff --git a/addons/imgui-godot/ImGuiGodot/InternalViewports.cs b/addons/imgui-godot/ImGuiGodot/InternalViewports.cs index b8bde05..ccf76f7 100644 --- a/addons/imgui-godot/ImGuiGodot/InternalViewports.cs +++ b/addons/imgui-godot/ImGuiGodot/InternalViewports.cs @@ -234,7 +234,7 @@ private static unsafe void InitPlatformInterface() ImGuiPlatformIO_Set_Platform_GetWindowSize(pio, Marshal.GetFunctionPointerForDelegate(_getWindowSize)); } - public static void Init(ImGuiIOPtr io) + public static void Init() { _mainWindow = new(ImGui.GetMainViewport(), ImGuiLayer.Instance.GetViewport() as Window);