summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2026-03-15 02:15:41 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2026-03-15 02:15:41 +0000
commit200b96d780598fe5ec59f2fc7e2e3eb6ac69d0de (patch)
treee078fdf6027a9914ad96c66e8f3849958dbad862 /test
parentAdd missing algorithm include (diff)
downloadilt-200b96d780598fe5ec59f2fc7e2e3eb6ac69d0de.tar.bz2
ilt-200b96d780598fe5ec59f2fc7e2e3eb6ac69d0de.tar.xz
ilt-200b96d780598fe5ec59f2fc7e2e3eb6ac69d0de.zip
glAllocator revampHEADmain
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.
Diffstat (limited to 'test')
-rw-r--r--test/test-glAllocator.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test-glAllocator.cpp b/test/test-glAllocator.cpp
index 96457a2..baf658c 100644
--- a/test/test-glAllocator.cpp
+++ b/test/test-glAllocator.cpp
@@ -5,6 +5,7 @@
#include <boost/test/unit_test.hpp>
#include "glAllocator.h"
+#include <ranges>
BOOST_GLOBAL_FIXTURE(TestMainWindowAppBase);
@@ -14,9 +15,9 @@ namespace {
GLuint name = 0;
{
glVector<long double> list;
- BOOST_REQUIRE_EQUAL(list.get_allocator().getNameFor(list), 0);
+ BOOST_REQUIRE_EQUAL(list.begin().base().bufferName(), 0);
list.reserve(5);
- name = list.get_allocator().getNameFor(list);
+ name = list.begin().base().bufferName();
BOOST_REQUIRE_GT(name, 0);
std::ranges::copy(std::views::iota(0, 10), std::back_inserter(list));
BOOST_REQUIRE_EQUAL(10, list.size());