Fixes
This commit is contained in:
@@ -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("/"));
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user