From a6514d1a95d0f84f0935866215463ef6aed23e19 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 7 Feb 2024 23:38:31 +0100 Subject: loader: work toward removing duplicate atlas code --- loader/texture.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'loader/texture.cpp') diff --git a/loader/texture.cpp b/loader/texture.cpp index 8ac9e793..e93b21af 100644 --- a/loader/texture.cpp +++ b/loader/texture.cpp @@ -4,7 +4,7 @@ #include "compat/defs.hpp" #include "compat/strerror.hpp" #include -#include +//#include #include #include @@ -19,11 +19,11 @@ Trade::ImageData2D loader_impl::texture(StringView prefix, StringView filename_) const auto N = prefix.size(); if (N > 0) [[likely]] fm_assert(prefix[N-1] == '/'); - fm_soft_assert(filename_.size() + prefix.size() + max_extension_length + 1 < FILENAME_MAX); + fm_soft_assert(filename_.size() + prefix.size() + max_extension_length + 1 < fm_FILENAME_MAX); fm_soft_assert(check_atlas_name(filename_)); fm_soft_assert(tga_importer); - char buf[FILENAME_MAX]; + char buf[fm_FILENAME_MAX]; const auto path_no_ext = make_atlas_path(buf, prefix, filename_); const auto len = path_no_ext.size(); -- cgit v1.2.3