summaryrefslogtreecommitdiff
path: root/test/test-ui.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2026-03-08 16:02:56 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2026-03-08 16:02:56 +0000
commit00fc3cb9b2c06026fab0e4760609fe02e027b6df (patch)
treeb84b527824ac1d5c999fc4a974fcf2c356b422ab /test/test-ui.cpp
parentReplace gl_traits glTexParameter with glTexture::parameter DSA wrapper (diff)
downloadilt-00fc3cb9b2c06026fab0e4760609fe02e027b6df.tar.bz2
ilt-00fc3cb9b2c06026fab0e4760609fe02e027b6df.tar.xz
ilt-00fc3cb9b2c06026fab0e4760609fe02e027b6df.zip
Move all low level texture operations to DSA helpers in glTexture
Diffstat (limited to 'test/test-ui.cpp')
-rw-r--r--test/test-ui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-ui.cpp b/test/test-ui.cpp
index c648c2c..74953b3 100644
--- a/test/test-ui.cpp
+++ b/test/test-ui.cpp
@@ -16,6 +16,6 @@ BOOST_AUTO_TEST_CASE(LoadFromFile)
{
SvgIcon svg(ImageDimensions {RENDER_SIZE}, Resource::mapPath("ui/icon/rails.svg"));
const auto size = svg.texture.getSize();
- BOOST_CHECK_EQUAL(size, TextureDimensions(RENDER_SIZE, RENDER_SIZE, 1));
- Texture::save(svg.texture, (ANALYSIS_DIRECTORY / "rails.tga").c_str());
+ BOOST_CHECK_EQUAL(size, ImageDimensions(RENDER_SIZE, RENDER_SIZE));
+ svg.texture.saveColour((ANALYSIS_DIRECTORY / "rails.tga").c_str());
}