diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-12-05 09:08:44 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-12-05 09:56:15 +0100 |
| commit | 0d2a79fe0a53cfa550ba59ddfe4b33ec7d2cdf82 (patch) | |
| tree | 963255a0a8ba91c8689793dc55928623a735f7c6 /vulkan/ExtensionMethods.cs | |
| parent | 34000fe6e76c9a3706bd1d6c65e30f25f6478de8 (diff) | |
debug, remove Vk from constant start
Diffstat (limited to 'vulkan/ExtensionMethods.cs')
| -rw-r--r-- | vulkan/ExtensionMethods.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vulkan/ExtensionMethods.cs b/vulkan/ExtensionMethods.cs index 831a9a0..d14625e 100644 --- a/vulkan/ExtensionMethods.cs +++ b/vulkan/ExtensionMethods.cs @@ -89,7 +89,7 @@ namespace Vulkan { Debug.WriteLine ("Trying to pin null object: {0}", obj); #endif GCHandle hnd = GCHandle.Alloc (obj.ToArray(), GCHandleType.Pinned); - handles.Add (obj, hnd); + handles.Add (hnd.AddrOfPinnedObject (), hnd); return hnd.AddrOfPinnedObject (); } |