From e1192a00c14546a745851981013d3c2cc113b9d8 Mon Sep 17 00:00:00 2001 From: Eric Mellino Date: Sat, 17 Feb 2018 17:58:03 -0800 Subject: [PATCH] NativeContext* parameter instead of IntPtr for SetCurrent/Destroy Context --- src/ImGui.NET/ImGuiNative.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ImGui.NET/ImGuiNative.cs b/src/ImGui.NET/ImGuiNative.cs index e94ac59..d18134b 100644 --- a/src/ImGui.NET/ImGuiNative.cs +++ b/src/ImGui.NET/ImGuiNative.cs @@ -356,11 +356,11 @@ namespace ImGuiNET [DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)] public static extern NativeContext* igCreateContext(ImGuiContextAllocationFunction malloc_fn, ImGuiContextFreeFunction free_fn); [DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)] - public static extern void igDestroyContext(IntPtr ctx); + public static extern void igDestroyContext(NativeContext* ctx); [DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)] public static extern NativeContext* igGetCurrentContext(); [DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)] - public static extern void igSetCurrentContext(IntPtr ctx); + public static extern void igSetCurrentContext(NativeContext* ctx); [DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)] [return: MarshalAs(UnmanagedType.I1)]