diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-16 12:35:27 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-16 12:35:52 +0200 |
| commit | 4bb0637fe81d79bba0de34f72caa632d1da03424 (patch) | |
| tree | 009f827aae4cba9171fdc19e3fa8ba0a02ed1c9b /loader | |
| parent | 44125b422bb75b9a14dc83d01325e9b1ef968bf6 (diff) | |
loader: fix tile atlas pass mode being ignored
Diffstat (limited to 'loader')
| -rw-r--r-- | loader/atlas.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/loader/atlas.cpp b/loader/atlas.cpp index 0a06f065..ede9f8ec 100644 --- a/loader/atlas.cpp +++ b/loader/atlas.cpp @@ -34,7 +34,11 @@ namespace floormat::loader_detail { std::shared_ptr<tile_atlas> loader_impl::tile_atlas(StringView name, Vector2ub size, Optional<pass_mode> pass) noexcept(false) { if (auto it = tile_atlas_map.find(name); it != tile_atlas_map.end()) + { + if (pass) + fm_assert(it->second->pass_mode() == pass); return it->second; + } fm_soft_assert(check_atlas_name(name)); |
