Fix incorrect marshalling of TextureImportEntry fields

This commit is contained in:
2023-01-14 17:50:25 +02:00
parent abdc257332
commit 1a1fadcc2f
2 changed files with 3 additions and 3 deletions

View File

@@ -1114,7 +1114,7 @@ namespace FlaxEngine
NativeMemory.AlignedFree(ptr);
}
internal static T[] GCHandleArrayToManagedArray<T>(ManagedArray ptrArray)
internal static T[] GCHandleArrayToManagedArray<T>(ManagedArray ptrArray) where T : class
{
Span<IntPtr> span = ptrArray.GetSpan<IntPtr>();
T[] managedArray = new T[ptrArray.Length];