From 200b96d780598fe5ec59f2fc7e2e3eb6ac69d0de Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 15 Mar 2026 02:15:41 +0000 Subject: glAllocator revamp Remove the map of buffers, now a fat pointer containing the buffer's name. This is accessible via the container's begin/end iterator. Move the bulk of the logic out of the template, it's mostly void * from the mapping anyway. Add allocate_at_least support. --- gfx/gl/instanceVertices.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gfx/gl') diff --git a/gfx/gl/instanceVertices.h b/gfx/gl/instanceVertices.h index e2bf46e..d984938 100644 --- a/gfx/gl/instanceVertices.h +++ b/gfx/gl/instanceVertices.h @@ -124,7 +124,7 @@ public: [[nodiscard]] GLuint bufferName() const { - return base::get_allocator().getNameFor(static_cast(*this)); + return base::begin().base().bufferName(); } using typename base::value_type; -- cgit v1.3