X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fgenerate.cpp;h=62c879c88a2d56c1ca99c9ef3daa2de20e69c50a;hb=90c89817585b41fdd1ab24153fec41d28d56cab0;hp=0662f9891f8adec9cbd6bf32da8f47f3b75bed1b;hpb=14b46ca054f563d3d23073633feafc4a6fcc4e05;p=libs%2Fgl.git diff --git a/source/glsl/generate.cpp b/source/glsl/generate.cpp index 0662f989..62c879c8 100644 --- a/source/glsl/generate.cpp +++ b/source/glsl/generate.cpp @@ -394,6 +394,12 @@ void InterfaceGenerator::visit(VariableDeclaration &var) TraversingVisitor::visit(var); } +void InterfaceGenerator::visit(FunctionDeclaration &func) +{ + // Skip parameters because they're not useful here + func.body.visit(*this); +} + void InterfaceGenerator::visit(Passthrough &pass) { vector pass_vars;