X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fbatch.cpp;h=c68beab908f8dc2a07c699a8b7bd6a9e41b5f35c;hb=63458ee3bedacf4d498074fcec15600a4932ae7b;hp=4fb2720df4cb9f2dcc27fa05de4f7bdc9fdd9597;hpb=99ca354f18119f82f1adeca100cd665a8f640317;p=libs%2Fgl.git diff --git a/source/core/batch.cpp b/source/core/batch.cpp index 4fb2720d..c68beab9 100644 --- a/source/core/batch.cpp +++ b/source/core/batch.cpp @@ -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 &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; }