minor tweak for consistency

pull/1/head
Caleb Cornett 2022-11-11 22:55:49 -05:00
parent 95243ef014
commit 048210dc58
1 changed files with 2 additions and 2 deletions

View File

@ -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)