X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fvertexarray.cpp;fp=source%2Fvertexarray.cpp;h=867aee7b189b71f348950741e4f2ccda6ae18921;hp=042f58c758b41ac48af3fccd52dcb7ec5f75440b;hb=19a6b5184fe057602a53b3f62f49e3ea2ae60a2e;hpb=6d8c517df7d76605f92b756c59f3f23570a688ff diff --git a/source/vertexarray.cpp b/source/vertexarray.cpp index 042f58c7..867aee7b 100644 --- a/source/vertexarray.cpp +++ b/source/vertexarray.cpp @@ -85,6 +85,7 @@ void VertexArray::reserve(unsigned n) float *VertexArray::append() { data.insert(data.end(), stride, 0.0f); + update_offset(); dirty = true; return &*(data.end()-stride); }