if(ARB_vertex_array_object && ARB_instanced_arrays && ARB_draw_instanced)
{
- instance_data = new VertexArray((ATTRIB4,matrix_location, ATTRIB4,matrix_location+1, ATTRIB4,matrix_location+2));
+ instance_data = new VertexArray((RAW_ATTRIB4,matrix_location, RAW_ATTRIB4,matrix_location+1, RAW_ATTRIB4,matrix_location+2));
const VertexFormat &fmt = instance_data->get_format();
- matrix_offset = fmt.offset(make_indexed_attribute(ATTRIB4, matrix_location));
+ matrix_offset = fmt.offset(make_indexed_attribute(RAW_ATTRIB4, matrix_location));
instance_buffer = new Buffer(ARRAY_BUFFER);
instance_data->use_buffer(instance_buffer);