Upgrade Mesh2D indices from u16 to u32

This commit is contained in:
Héctor Ramón Jiménez 2020-02-14 05:42:19 +01:00
parent 945dfabd71
commit f5c80a6d75
3 changed files with 4 additions and 4 deletions

View file

@ -94,7 +94,7 @@ mod bezier {
layout: Layout<'_>,
cursor_position: Point,
) -> (Primitive, MouseCursor) {
let mut buffer: VertexBuffers<Vertex2D, u16> = VertexBuffers::new();
let mut buffer: VertexBuffers<Vertex2D, u32> = VertexBuffers::new();
let mut path_builder = lyon::path::Path::builder();
let bounds = layout.bounds();