summaryrefslogtreecommitdiff
path: root/test/test-geoData.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-12-22 12:58:57 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-12-22 12:58:57 +0000
commit7a0121a612e901585fef39c1b599d53a21cb0afe (patch)
tree06f4731b4004e6ec52ce4205929c337a61949242 /test/test-geoData.cpp
parentUpdate terrain meshes as required (diff)
downloadilt-7a0121a612e901585fef39c1b599d53a21cb0afe.tar.bz2
ilt-7a0121a612e901585fef39c1b599d53a21cb0afe.tar.xz
ilt-7a0121a612e901585fef39c1b599d53a21cb0afe.zip
SetHeightOptions surface changed to defaulted pointer
Diffstat (limited to 'test/test-geoData.cpp')
-rw-r--r--test/test-geoData.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-geoData.cpp b/test/test-geoData.cpp
index 9ec4656..589f675 100644
--- a/test/test-geoData.cpp
+++ b/test/test-geoData.cpp
@@ -211,7 +211,7 @@ BOOST_DATA_TEST_CASE(deform, loadFixtureJson<DeformTerrainData>("geoData/deform/
Surface surface;
surface.colorBias = RGB {0, 0, 1};
auto gd = std::make_shared<GeoData>(GeoData::createFlat({0, 0}, {1000000, 1000000}, 100));
- BOOST_CHECK_NO_THROW(gd->setHeights(points, {.surface = surface}));
+ BOOST_CHECK_NO_THROW(gd->setHeights(points, {.surface = &surface}));
BOOST_CHECK_NO_THROW(gd->sanityCheck());
ApplicationBase ab;
@@ -265,6 +265,6 @@ BOOST_DATA_TEST_CASE(
auto gd = std::make_shared<GeoData>(GeoData::createFlat({0, 0}, {1000000, 1000000}, 100));
for (const auto & strip : points) {
BOOST_REQUIRE_GE(strip.size(), 3);
- BOOST_CHECK_NO_THROW(gd->setHeights(strip, {.surface = surface, .nearNodeTolerance = 50}));
+ BOOST_CHECK_NO_THROW(gd->setHeights(strip, {.surface = &surface, .nearNodeTolerance = 50}));
}
}