Fix shader error when using non-ASCII characters in material

This commit is contained in:
2026-08-04 13:17:00 +02:00
parent 4d589314c8
commit f52949d1df
4 changed files with 22 additions and 2 deletions
@@ -627,8 +627,9 @@ bool MaterialGenerator::Generate(WriteStream& source, MaterialInfo& materialInfo
if (in.Length() > 0)
{
tmp.EnsureCapacity(in.Length() + 1, false);
StringUtils::ConvertUTF162ANSI(*in, tmp.Get(), in.Length());
StringUtils::ConvertUTF162ASCII(*in, tmp.Get(), in.Length());
source.WriteBytes(tmp.Get(), in.Length());
tmp.Clear();
}
}
}