]> git.tdb.fi Git - libs/gl.git/blobdiff - source/batch.cpp
Inherit Loaders from the ObjectLoader classes
[libs/gl.git] / source / batch.cpp
index e522491144f1a7f6a06a0329e5c8e1721b241e69..33481a1cdfc8c613692f36de60e667e8413ed698 100644 (file)
@@ -53,14 +53,14 @@ void Batch::draw_with_buffer(unsigned offset) const
 
 
 Batch::Loader::Loader(Batch &b):
-       batch(b)
+       DataFile::ObjectLoader<Batch>(b)
 {
        add("indices", &Loader::indices);
 }
 
 void Batch::Loader::indices(const vector<uint> &ind)
 {
-       batch.append(ind);
+       obj.append(ind);
 }
 
 } // namespace GL