X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fvertexarray.cpp;h=beffa64e0873fa66ee3d8f4228a76922abf1355c;hp=db88e13cd013176defba7b8663a035e783d7de17;hb=97818e67b2543a6075c13e6bf22c296757b975e5;hpb=1b2e58f0e3c84e45b40e89b07939e89e7a211179 diff --git a/source/core/vertexarray.cpp b/source/core/vertexarray.cpp index db88e13c..beffa64e 100644 --- a/source/core/vertexarray.cpp +++ b/source/core/vertexarray.cpp @@ -37,7 +37,7 @@ char *VertexArray::append() throw invalid_operation("VertexArray::append"); data.insert(data.end(), stride, 0.0f); update_offset(); - dirty = true; + mark_dirty(); return &*(data.end()-stride); } @@ -45,7 +45,7 @@ char *VertexArray::modify(size_t i) { if(format.empty()) throw invalid_operation("VertexArray::modify"); - dirty = true; + mark_dirty(); return &data[0]+i*stride; }