This commit is contained in:
Wojtek Figat
2021-10-17 16:01:57 +02:00
parent a906e0c857
commit 25be2902ac
2 changed files with 2 additions and 2 deletions

View File

@@ -369,7 +369,7 @@ void StringUtils::PathRemoveRelativeParts(String& path)
path.Clear();
for (auto& e : stack)
path /= e;
if (isRooted && path[0] != '/')
if (isRooted && path.HasChars() && path[0] != '/')
path.Insert(0, TEXT("/"));
}

View File

@@ -32,7 +32,7 @@ ShaderProcessing::Parser::~Parser()
bool ShaderProcessing::Parser::Process(const String& targetName, const char* source, int32 sourceLength, ParserMacros macros, FeatureLevel featureLevel, ShaderMeta* result)
{
PROFILE_CPU("Shader.Parse");
PROFILE_CPU_NAMED("Shader.Parse");
Parser parser(targetName, source, sourceLength, macros, featureLevel);
parser.Process(result);
return parser.Failed();