Shader: Fix handling of if/else construct

This commit is contained in:
Jérôme Leclercq
2021-12-12 23:04:37 +01:00
parent 31c71e542e
commit 3185e73941
2 changed files with 8 additions and 0 deletions

View File

@@ -458,7 +458,10 @@ namespace Nz::ShaderLang
}
if (Peek().type == TokenType::Else)
{
Consume();
branch->elseStatement = ParseStatement();
}
return branch;
}