Fix shader parsing error due to unknown macro used on shader function visibility condition
This commit is contained in:
@@ -374,8 +374,10 @@ namespace ShaderProcessing
|
||||
}
|
||||
else
|
||||
{
|
||||
parser->OnError(String::Format(TEXT("Invalid shader function \'isVisible\' option value \'{0}\'."), String(token.ToString())));
|
||||
return;
|
||||
// Undefined macro (fallback into hidden shader)
|
||||
current.Flags = ShaderFlags::Hidden;
|
||||
//parser->OnError(String::Format(TEXT("Invalid shader function \'isVisible\' option value \'{0}\'."), String(token.ToString())));
|
||||
//return;
|
||||
}
|
||||
text.ReadToken(&token);
|
||||
token = parser->GetMacros().GetValue(token);
|
||||
|
||||
Reference in New Issue
Block a user