throw invalid_operation("VertexArray::append");
data.insert(data.end(), stride, 0.0f);
update_offset();
- dirty = true;
+ mark_dirty();
return &*(data.end()-stride);
}
{
if(format.empty())
throw invalid_operation("VertexArray::modify");
- dirty = true;
+ mark_dirty();
return &data[0]+i*stride;
}