summaryrefslogtreecommitdiffhomepage
path: root/src/tile-atlas.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-08-27 09:56:58 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-08-27 12:15:48 +0200
commit24cefefa0efccaa814ffd58fec3d07fffa59c394 (patch)
treea2e35be1ccf4172f9f236b53a8489d81f06920dd /src/tile-atlas.cpp
parenteb0344b85d230e906236cef34ea1e0c819da7e27 (diff)
call AbstractTexture::setLabel()
Diffstat (limited to 'src/tile-atlas.cpp')
-rw-r--r--src/tile-atlas.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tile-atlas.cpp b/src/tile-atlas.cpp
index ed2f6d24..c6de3e89 100644
--- a/src/tile-atlas.cpp
+++ b/src/tile-atlas.cpp
@@ -18,7 +18,8 @@ tile_atlas::tile_atlas(StringView name, const ImageView2D& image, Vector2ub tile
fm_soft_assert(num_tiles() <= variant_max);
fm_soft_assert(dims_[0] > 0 && dims_[1] > 0);
fm_soft_assert(size_ % Vector2ui{tile_count} == Vector2ui());
- tex_.setWrapping(GL::SamplerWrapping::ClampToEdge)
+ tex_.setLabel(name_)
+ .setWrapping(GL::SamplerWrapping::ClampToEdge)
.setMagnificationFilter(GL::SamplerFilter::Linear)
.setMinificationFilter(GL::SamplerFilter::Linear)
.setMaxAnisotropy(1)