diff --git a/libs/gfx/include/psemek/gfx/texture_atlas.hpp b/libs/gfx/include/psemek/gfx/texture_atlas.hpp index 05c3f3d0..e9832a1b 100644 --- a/libs/gfx/include/psemek/gfx/texture_atlas.hpp +++ b/libs/gfx/include/psemek/gfx/texture_atlas.hpp @@ -12,7 +12,7 @@ namespace psemek::gfx { using atlas_type = util::atlas; - texture_atlas_2d(Pixel background = Pixel{}, std::size_t padding = 0, atlas_type::padding_mode mode = atlas_type::padding_mode::default_value, Compare compare = Compare{}); + texture_atlas_2d(Pixel background = Pixel{}, std::size_t padding = 0, typename atlas_type::padding_mode mode = atlas_type::padding_mode::default_value, Compare compare = Compare{}); using texture_view = texture_view_2d; @@ -36,7 +36,7 @@ namespace psemek::gfx }; template - texture_atlas_2d::texture_atlas_2d(Pixel background, std::size_t padding, atlas_type::padding_mode mode, Compare compare) + texture_atlas_2d::texture_atlas_2d(Pixel background, std::size_t padding, typename atlas_type::padding_mode mode, Compare compare) : atlas_(std::move(background), padding, mode, std::move(compare)) {}