From eb55ad564487cec5d0e214b49e30cc3b1f6b28ba Mon Sep 17 00:00:00 2001 From: lisyarus Date: Mon, 15 May 2023 23:28:14 +0300 Subject: [PATCH] Texture atlas compilation fixes --- libs/gfx/include/psemek/gfx/texture_atlas.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) {}