]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/batch.cpp
Use a member function to set the dirty flag in Bufferable
[libs/gl.git] / source / core / batch.cpp
index 4fb2720df4cb9f2dcc27fa05de4f7bdc9fdd9597..c68beab908f8dc2a07c699a8b7bd6a9e41b5f35c 100644 (file)
@@ -70,7 +70,7 @@ void Batch::set_index_type(DataType t)
        index_type = t;
        BatchBackend::set_index_type(t);
        update_offset();
-       dirty = true;
+       mark_dirty();
 }
 
 Batch &Batch::append(unsigned i)
@@ -78,7 +78,7 @@ Batch &Batch::append(unsigned i)
        append_index(i);
 
        update_offset();
-       dirty = true;
+       mark_dirty();
 
        return *this;
 }
@@ -93,7 +93,7 @@ Batch &Batch::append(const vector<unsigned> &ind)
                append_index(i);
 
        update_offset();
-       dirty = true;
+       mark_dirty();
 
        return *this;
 }
@@ -142,7 +142,7 @@ Batch &Batch::append(const Batch &other)
                append_index(other.get_index(i));
 
        update_offset();
-       dirty = true;
+       mark_dirty();
 
        return *this;
 }