mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Use 32 bit vertex indicec on glium
This commit is contained in:
@@ -257,7 +257,7 @@ impl Painter {
|
||||
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 =
|
||||
glium::IndexBuffer::new(display, PrimitiveType::TrianglesList, &indices).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user