Shader: Fix function calls with OpenGL
This commit is contained in:
@@ -967,7 +967,12 @@ namespace Nz
|
||||
static_assert(AlwaysFalse<T>::value, "non-exhaustive visitor");
|
||||
}, node.value);
|
||||
}
|
||||
|
||||
|
||||
void GlslWriter::Visit(ShaderAst::FunctionExpression& node)
|
||||
{
|
||||
const std::string& targetName = Retrieve(m_currentState->previsitor.functions, node.funcId).name;
|
||||
Append(targetName);
|
||||
}
|
||||
|
||||
void GlslWriter::Visit(ShaderAst::IntrinsicExpression& node)
|
||||
{
|
||||
|
||||
@@ -969,6 +969,11 @@ namespace Nz
|
||||
AppendIdentifier(m_currentState->constants, node.constantId);
|
||||
}
|
||||
|
||||
void LangWriter::Visit(ShaderAst::FunctionExpression& node)
|
||||
{
|
||||
Append(Retrieve(m_currentState->functions, node.funcId).name);
|
||||
}
|
||||
|
||||
void LangWriter::Visit(ShaderAst::IdentifierExpression& node)
|
||||
{
|
||||
Append(node.identifier);
|
||||
|
||||
Reference in New Issue
Block a user