From 6a7510a74193ad442bfe82d8377606c3cb66e6b2 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 15 Sep 2016 17:47:27 +0300 Subject: [PATCH] Align batches at the index size --- source/batch.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source/batch.h b/source/batch.h index 0ce4ecf1..2f83207e 100644 --- a/source/batch.h +++ b/source/batch.h @@ -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(); } -- 2.45.2