Don't use DrawRangeElement if not available
This commit is contained in:
parent
bdcae83341
commit
74d5403213
6 changed files with 13210 additions and 44 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue