Case insensitive in linux for reloading texture

This commit is contained in:
Benau
2016-12-30 20:24:35 +08:00
parent 412399cdf7
commit 360e1bb88b

View File

@@ -304,8 +304,9 @@ core::stringw reloadTexture(const core::stringw& name)
{
for (video::ITexture* tex : AlreadyTransformedTexture)
{
std::string tex_path = tex->getName().getPtr();
std::string tex_name = StringUtils::getBasename(tex_path).c_str();
std::string tex_path =
StringUtils::toLowerCase(tex->getName().getPtr());
std::string tex_name = StringUtils::getBasename(tex_path);
if (fname == tex_name || fname == tex_path)
{
if (reloadSingleTexture(tex))