From: Mikko Rasa Date: Sat, 24 Apr 2021 14:55:49 +0000 (+0300) Subject: Visit function definitions while collection dependencies X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=36569927a57a59bf0bfadb653c97395dbf8356f7;p=libs%2Fgl.git Visit function definitions while collection dependencies Visiting just the declaration won't do much good. --- diff --git a/source/glsl/reflect.cpp b/source/glsl/reflect.cpp index 8c10accc..91e8fa55 100644 --- a/source/glsl/reflect.cpp +++ b/source/glsl/reflect.cpp @@ -321,7 +321,8 @@ void DependencyCollector::visit(FunctionCall &call) if(call.declaration) { dependencies.insert(call.declaration); - call.declaration->visit(*this); + if(call.declaration->definition) + call.declaration->definition->visit(*this); } TraversingVisitor::visit(call); }