summaryrefslogtreecommitdiff
path: root/test/test-ui.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2026-03-02 13:17:28 +0000
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2026-03-02 13:17:28 +0000
commit64ede41ebaade64ad6705f7f55ca4a778a156481 (patch)
tree6d2fbc64cd28d272fe3f5bbf79ddd41ecc5e2626 /test/test-ui.cpp
parentRefactor glArrays to better expose underlying types (diff)
downloadilt-64ede41ebaade64ad6705f7f55ca4a778a156481.tar.bz2
ilt-64ede41ebaade64ad6705f7f55ca4a778a156481.tar.xz
ilt-64ede41ebaade64ad6705f7f55ca4a778a156481.zip
Wrap up some low level texture operations in glTexture classHEADmain
Fixes previously hard coded billboard texture size.
Diffstat (limited to 'test/test-ui.cpp')
-rw-r--r--test/test-ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-ui.cpp b/test/test-ui.cpp
index 40c041a..c648c2c 100644
--- a/test/test-ui.cpp
+++ b/test/test-ui.cpp
@@ -15,7 +15,7 @@ BOOST_GLOBAL_FIXTURE(TestMainWindowAppBase);
BOOST_AUTO_TEST_CASE(LoadFromFile)
{
SvgIcon svg(ImageDimensions {RENDER_SIZE}, Resource::mapPath("ui/icon/rails.svg"));
- const auto size = Texture::getSize(svg.texture);
+ 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());
}