diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-02-02 02:02:19 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-02-02 02:02:19 +0000 |
commit | 9a106a6906d6a9718541633525de540e667b7625 (patch) | |
tree | d7628042bfa52586a0efe5df849aa10d1194b349 /test/test-instancing.cpp | |
parent | Fix warnings in test-glContainer (diff) | |
download | ilt-9a106a6906d6a9718541633525de540e667b7625.tar.bz2 ilt-9a106a6906d6a9718541633525de540e667b7625.tar.xz ilt-9a106a6906d6a9718541633525de540e667b7625.zip |
Don't keep a span, create as needed
Removes the error prone issue where data/size get out of sync. Fixes overflow issues leading
to memory corruption of GPU data.
Diffstat (limited to 'test/test-instancing.cpp')
-rw-r--r-- | test/test-instancing.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-instancing.cpp b/test/test-instancing.cpp index 98133f3..c1860a4 100644 --- a/test/test-instancing.cpp +++ b/test/test-instancing.cpp @@ -56,11 +56,11 @@ BOOST_AUTO_TEST_CASE(autoMapUnmap) { { auto proxy = acquire(); - BOOST_CHECK(data_.data()); + BOOST_CHECK(data_); std::ignore = bufferName(); - BOOST_CHECK(data_.data()); + BOOST_CHECK(data_); BOOST_CHECK_EQUAL(1, size()); - BOOST_CHECK(!data_.data()); + BOOST_CHECK(!data_); } BOOST_CHECK_EQUAL(0, size()); } |