minor tweak for consistency
parent
95243ef014
commit
048210dc58
|
@ -47,7 +47,7 @@ namespace MoonWorks.Test
|
||||||
PositionColorVertex[] readbackVertices = new PositionColorVertex[vertices.Length];
|
PositionColorVertex[] readbackVertices = new PositionColorVertex[vertices.Length];
|
||||||
vertexBuffer.GetData(
|
vertexBuffer.GetData(
|
||||||
readbackVertices,
|
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)
|
for (int i = 0; i < readbackVertices.Length; i += 1)
|
||||||
{
|
{
|
||||||
|
@ -86,7 +86,7 @@ namespace MoonWorks.Test
|
||||||
// Read the updated buffer
|
// Read the updated buffer
|
||||||
vertexBuffer.GetData(
|
vertexBuffer.GetData(
|
||||||
readbackVertices,
|
readbackVertices,
|
||||||
(uint) (readbackVertices.Length * vertexSize)
|
(uint) (vertexSize * readbackVertices.Length)
|
||||||
);
|
);
|
||||||
Logger.LogInfo("===");
|
Logger.LogInfo("===");
|
||||||
for (int i = 0; i < readbackVertices.Length; i += 1)
|
for (int i = 0; i < readbackVertices.Length; i += 1)
|
||||||
|
|
Loading…
Reference in New Issue