Skip to content

Commit

Permalink
ILC warning (MonoGame#8083)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhelmut authored Oct 16, 2023
1 parent 27dd67c commit a91dcc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private void GetBufferData<T>(int offsetInBytes, T[] data, int startIndex, int e
var tmpPtr = tmpHandle.AddrOfPinnedObject();
for (var i = 0; i < elementCount; i++)
{
data[startIndex + i] = (T)Marshal.PtrToStructure(tmpPtr, typeof(T));
data[startIndex + i] = Marshal.PtrToStructure<T>(tmpPtr);
tmpPtr = (IntPtr)(tmpPtr.ToInt64() + vertexStride);
}
}
Expand Down

0 comments on commit a91dcc7

Please sign in to comment.