X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fglsl%2Foptimize.cpp;h=08455c8ac61412d71fb8cfbb684c857f6a883169;hb=223e295e4404a3913b8243d3b7eb12da39a68144;hp=8cbf24e1be0309a2c8304051cc185d9316836974;hpb=19a24f859cd7fcf581442319499ae24b3e7385a4;p=libs%2Fgl.git diff --git a/source/glsl/optimize.cpp b/source/glsl/optimize.cpp index 8cbf24e1..08455c8a 100644 --- a/source/glsl/optimize.cpp +++ b/source/glsl/optimize.cpp @@ -1,4 +1,5 @@ #include +#include #include "optimize.h" using namespace std; @@ -198,6 +199,7 @@ void FunctionInliner::visit_and_inline(RefPtr &ptr) void FunctionInliner::visit(Block &block) { + SetForScope set_block(current_block, &block); SetForScope::iterator> save_insert_point(insert_point, block.body.begin()); for(NodeList::iterator i=block.body.begin(); i!=block.body.end(); ++i) {