ignore reflected gl_VertexIndex attribute

This commit is contained in:
carter 2020-06-04 11:30:43 -07:00
parent ab31bf9d9e
commit 69ac775bfb

View File

@ -52,6 +52,9 @@ impl ShaderLayout {
for input_variable in module.enumerate_input_variables(None).unwrap() {
let vertex_attribute_descriptor =
reflect_vertex_attribute_descriptor(&input_variable);
if vertex_attribute_descriptor.name == GL_VERTEX_INDEX {
continue;
}
vertex_attribute_descriptors.push(vertex_attribute_descriptor);
}