diff --git a/src/Graphics/Vertices/DynamicVertexBuffer.cs b/src/Graphics/Vertices/DynamicVertexBuffer.cs index 39bd353..aa4e56b 100644 --- a/src/Graphics/Vertices/DynamicVertexBuffer.cs +++ b/src/Graphics/Vertices/DynamicVertexBuffer.cs @@ -9,6 +9,7 @@ #region Using Statements using System; +using System.Runtime.InteropServices; #endregion namespace Microsoft.Xna.Framework.Graphics @@ -99,7 +100,7 @@ namespace Microsoft.Xna.Framework.Graphics data, startIndex, elementCount, - VertexDeclaration.VertexStride, + Marshal.SizeOf(typeof(T)), options ); }