- bool integer = is_integer_attribute(a);
- GLenum type = get_gl_type(get_attribute_source_type(a));
- unsigned cc = get_attribute_component_count(a);
- if(direct)
- {
- if(integer)
- glVertexArrayAttribIFormat(id, sem, cc, type, offset);
- else
- glVertexArrayAttribFormat(id, sem, cc, type, true, offset);
- glVertexArrayAttribBinding(id, sem, binding);
- glEnableVertexArrayAttrib(id, sem);
- }
- else