X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fgenerate.cpp;h=ca4d41e64c7a8c63bf51fd8d446e5ccb4dc8bd5a;hp=d435d29a37e87b2c38f3d7e09ef5ebc6243f0989;hb=5c33b56c3b97ca0381ac216a603c7553f4bea499;hpb=5f951824063db724807ea939ec10c75c3e4a1070 diff --git a/source/glsl/generate.cpp b/source/glsl/generate.cpp index d435d29a..ca4d41e6 100644 --- a/source/glsl/generate.cpp +++ b/source/glsl/generate.cpp @@ -10,7 +10,7 @@ namespace SL { void DeclarationCombiner::apply(Stage &stage) { - visit(stage.content); + stage.content.visit(*this); NodeRemover().apply(stage, nodes_to_remove); } @@ -96,7 +96,7 @@ void VariableResolver::apply(Stage &stage) { Stage *builtin_stage = get_builtins(stage.type); builtins = (builtin_stage ? &builtin_stage->content : 0); - visit(stage.content); + stage.content.visit(*this); } Block *VariableResolver::next_block(Block &block) @@ -285,7 +285,7 @@ void InterfaceGenerator::apply(Stage &s) if(stage->previous) in_prefix = get_out_prefix(stage->previous->type); out_prefix = get_out_prefix(stage->type); - visit(s.content); + s.content.visit(*this); NodeRemover().apply(s, nodes_to_remove); }