diff --git a/src/main/java/org/taumc/glsl/Transformer.java b/src/main/java/org/taumc/glsl/Transformer.java index 2341751..d958d76 100644 --- a/src/main/java/org/taumc/glsl/Transformer.java +++ b/src/main/java/org/taumc/glsl/Transformer.java @@ -395,7 +395,7 @@ public void renameFunctionCall(Map names) { public void renameAndWrapShadow(String oldName, String newName) { var postfixExpression = new ArrayList<>(postfixExpressions); for (var cachedExpr : postfixExpression) { - String function = cachedExpr.expr().getText(); + String function = cachedExpr.exprText(); if (cachedExpr.expr().function_call_parameters() != null && function.startsWith(oldName + "(")) { function = "vec4" + "(" + function + ")"; var def = ShaderParser.parseSnippet(function, GLSLParser::postfix_expression);