diff --git a/GetBufferData/GetBufferDataGame.cs b/GetBufferData/GetBufferDataGame.cs index 46b1d89..5f52767 100644 --- a/GetBufferData/GetBufferDataGame.cs +++ b/GetBufferData/GetBufferDataGame.cs @@ -90,10 +90,13 @@ namespace MoonWorks.Test var lastTwoSpan = otherVerts.Slice(1, 2); transferBuffer.SetData(lastTwoSpan, SetDataOptions.Overwrite); cmdbuf.BeginCopyPass(); - cmdbuf.UploadToBuffer( + cmdbuf.UploadToBuffer( transferBuffer, vertexBuffer, - new BufferCopy(0, (uint) (vertexSize * (vertices.Length - 2)), (uint) (vertexSize * 2))); + 0, + (uint)(vertices.Length - 2), + 2 + ); cmdbuf.EndCopyPass(); fence = GraphicsDevice.SubmitAndAcquireFence(cmdbuf); GraphicsDevice.WaitForFences(fence);