Switch to glDrawRangeElements
parent
1cc363f8d5
commit
a41eb8b969
|
@ -273,7 +273,7 @@ impl RenderableModel {
|
|||
vertex_attrib_pointer (attrs ["uv"], 2, self.num_pos);
|
||||
vertex_attrib_pointer (attrs ["normal"], 3, self.num_pos + self.num_uv);
|
||||
|
||||
gl::DrawElements (gl::TRIANGLES, mesh.num_triangles * 3, gl::UNSIGNED_INT, (mesh.first_triangle * 3 * 4) as *const u8 as *const c_void);
|
||||
gl::DrawRangeElements (gl::TRIANGLES, 0, self.indexes.max, mesh.num_triangles * 3, gl::UNSIGNED_INT, (mesh.first_triangle * 3 * 4) as *const u8 as *const c_void);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue