Shader: Fix handling of if/else construct
This commit is contained in:
@@ -458,7 +458,10 @@ namespace Nz::ShaderLang
|
||||
}
|
||||
|
||||
if (Peek().type == TokenType::Else)
|
||||
{
|
||||
Consume();
|
||||
branch->elseStatement = ParseStatement();
|
||||
}
|
||||
|
||||
return branch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user