X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fvertexarray.cpp;h=beffa64e0873fa66ee3d8f4228a76922abf1355c;hb=e1be82a4dfce8d90358c506f65be09da4dc9d5ec;hp=db88e13cd013176defba7b8663a035e783d7de17;hpb=be6ffe96ecb4707599fe1a6f620c348760213d46;p=libs%2Fgl.git 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; }