X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Freflect.h;fp=source%2Fglsl%2Freflect.h;h=c2d7aa0483bd36e4411a55c2d5325158dfae1b92;hb=c72c4ebe384a0d5a48c268d09449707bd86090a8;hp=56ead82ceface5a35fc72af0a2f2b60ae874efc0;hpb=fe980fbd898645eba1ac06a5061b3a48db4638b0;p=libs%2Fgl.git diff --git a/source/glsl/reflect.h b/source/glsl/reflect.h index 56ead82c..c2d7aa04 100644 --- a/source/glsl/reflect.h +++ b/source/glsl/reflect.h @@ -85,6 +85,7 @@ class DependencyCollector: private TraversingVisitor private: std::set dependencies; std::set locals; + std::set visited_functions; public: std::set apply(FunctionDeclaration &); @@ -94,6 +95,7 @@ private: virtual void visit(InterfaceBlockReference &); virtual void visit(FunctionCall &); virtual void visit(VariableDeclaration &); + virtual void visit(FunctionDeclaration &); }; } // namespace SL