]> git.tdb.fi Git - libs/gl.git/commitdiff
Align batches at the index size
authorMikko Rasa <tdb@tdb.fi>
Thu, 15 Sep 2016 14:47:27 +0000 (17:47 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 15 Sep 2016 14:47:27 +0000 (17:47 +0300)
source/batch.h

index 0ce4ecf14e41f9214023f0c631081edf230e13e5..2f83207edba0b464277c6c9edd655dd0d563948e 100644 (file)
@@ -57,6 +57,7 @@ private:
        void append_index(unsigned);
        virtual unsigned get_data_size() const { return data.size(); }
        virtual const void *get_data_pointer() const { return &data[0]; }
+       virtual unsigned get_alignment() const { return get_index_size(); }
        unsigned get_index_size() const;
 public:
        unsigned size() const { return data.size()/get_index_size(); }