diff options
Diffstat (limited to 'gfx/gl/instanceVertices.h')
| -rw-r--r-- | gfx/gl/instanceVertices.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gfx/gl/instanceVertices.h b/gfx/gl/instanceVertices.h index e31fa83..9963a96 100644 --- a/gfx/gl/instanceVertices.h +++ b/gfx/gl/instanceVertices.h @@ -128,6 +128,12 @@ public: return base::begin().base().bufferName(); } + [[nodiscard]] GLuint + indexBufferName() const + { + return index.begin().base().bufferName(); + } + using typename base::value_type; using base::at; @@ -232,7 +238,7 @@ protected: } // Index into buffer given to nth proxy - std::vector<IndexT> index; + glVector<IndexT> index; std::vector<IndexT> reverseIndex; // List of free spaces in index std::vector<IndexT> unused; |
