Use 32 bit vertex indicec on glium
This commit is contained in:
parent
3860807e29
commit
090d056f3d
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ impl Painter {
|
||||||
glium::VertexBuffer::new(display, &vertices).unwrap()
|
glium::VertexBuffer::new(display, &vertices).unwrap()
|
||||||
};
|
};
|
||||||
|
|
||||||
let indices: Vec<u16> = mesh.indices.iter().map(|idx| *idx as u16).collect();
|
let indices: Vec<u32> = mesh.indices.iter().map(|idx| *idx as u32).collect();
|
||||||
|
|
||||||
let index_buffer =
|
let index_buffer =
|
||||||
glium::IndexBuffer::new(display, PrimitiveType::TrianglesList, &indices).unwrap();
|
glium::IndexBuffer::new(display, PrimitiveType::TrianglesList, &indices).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue