From: Mikko Rasa Date: Tue, 9 Mar 2021 12:34:09 +0000 (+0200) Subject: Resolve functions after inlining functions X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=4c6f1a526ed949f6c9f4c3a57c036b3cdb1aaa91;p=libs%2Fgl.git Resolve functions after inlining functions Inlining clones expressions, and the clones FunctionCall nodes don't have a declaration pointer. --- 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))