From 36569927a57a59bf0bfadb653c97395dbf8356f7 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 24 Apr 2021 17:55:49 +0300 Subject: [PATCH] Visit function definitions while collection dependencies Visiting just the declaration won't do much good. --- source/glsl/reflect.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.45.2