]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/vertexarray.cpp
Use a member function to set the dirty flag in Bufferable
[libs/gl.git] / source / core / vertexarray.cpp
index db88e13cd013176defba7b8663a035e783d7de17..beffa64e0873fa66ee3d8f4228a76922abf1355c 100644 (file)
@@ -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;
 }