From 048210dc58e875b91753887ac6cabb429e5569af Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Fri, 11 Nov 2022 22:55:49 -0500 Subject: [PATCH] minor tweak for consistency --- GetBufferData/GetBufferDataGame.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GetBufferData/GetBufferDataGame.cs b/GetBufferData/GetBufferDataGame.cs index 298592a..f95ee03 100644 --- a/GetBufferData/GetBufferDataGame.cs +++ b/GetBufferData/GetBufferDataGame.cs @@ -47,7 +47,7 @@ namespace MoonWorks.Test PositionColorVertex[] readbackVertices = new PositionColorVertex[vertices.Length]; vertexBuffer.GetData( readbackVertices, - (uint) (readbackVertices.Length * vertexSize) // FIXME: Seems like this should get auto-calculated somehow + (uint) (vertexSize * readbackVertices.Length) // FIXME: Seems like this should get auto-calculated somehow ); for (int i = 0; i < readbackVertices.Length; i += 1) { @@ -86,7 +86,7 @@ namespace MoonWorks.Test // Read the updated buffer vertexBuffer.GetData( readbackVertices, - (uint) (readbackVertices.Length * vertexSize) + (uint) (vertexSize * readbackVertices.Length) ); Logger.LogInfo("==="); for (int i = 0; i < readbackVertices.Length; i += 1)