From 4c6f1a526ed949f6c9f4c3a57c036b3cdb1aaa91 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 9 Mar 2021 14:34:09 +0200 Subject: [PATCH] Resolve functions after inlining functions Inlining clones expressions, and the clones FunctionCall nodes don't have a declaration pointer. --- source/glsl/compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glsl/compiler.cpp b/source/glsl/compiler.cpp index 9c1238c0..332dd331 100644 --- a/source/glsl/compiler.cpp +++ b/source/glsl/compiler.cpp @@ -324,7 +324,7 @@ Compiler::OptimizeResult Compiler::optimize(Stage &stage) bool any_inlined = false; if(FunctionInliner().apply(stage)) { - resolve(stage, RESOLVE_TYPES|RESOLVE_VARIABLES|RESOLVE_EXPRESSIONS); + resolve(stage, RESOLVE_TYPES|RESOLVE_VARIABLES|RESOLVE_FUNCTIONS|RESOLVE_EXPRESSIONS); any_inlined = true; } if(ExpressionInliner().apply(stage)) -- 2.43.0