Don't use DrawRangeElement if not available

This commit is contained in:
LarsBrubaker 2020-06-30 07:32:33 -07:00
parent bdcae83341
commit 74d5403213
6 changed files with 13210 additions and 44 deletions

View file

@ -284,7 +284,7 @@ namespace MatterHackers.GCodeVisualizer
}
// Construct and return the new VertexBuffer object with all color/index data
return new GCodeVertexBuffer(vertexIndexArray.Array, colorVertexData.Array);
return new GCodeVertexBuffer(vertexIndexArray.Array, vertexIndexArray.Count, colorVertexData.Array);
}
public void Dispose()