X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramcompiler.cpp;h=fbcc6598d3bcd5e7e74bf50bdf3762e51de9e343;hp=9761177a8086be6ac0e16f69fa29974398548e57;hb=573ea4e5602c4321cc1d75daf9ed0beed5cde280;hpb=9b85a273505ae190649c42bcf52f750e9c875fbe diff --git a/source/programcompiler.cpp b/source/programcompiler.cpp index 9761177a..fbcc6598 100644 --- a/source/programcompiler.cpp +++ b/source/programcompiler.cpp @@ -35,6 +35,8 @@ namespace GL { using namespace ProgramSyntax; +// XXX For some reason global declarations are emitted for otherwise undeclared local variables + ProgramCompiler::ProgramCompiler(): resources(0), module(0) @@ -130,8 +132,8 @@ Stage *ProgramCompiler::get_builtins(StageType type) void ProgramCompiler::append_module(ProgramSyntax::Module &mod) { - list imports = apply >(mod.shared); - for(list::iterator i=imports.begin(); i!=imports.end(); ++i) + vector imports = apply >(mod.shared); + for(vector::iterator i=imports.begin(); i!=imports.end(); ++i) import((*i)->module); apply(mod.shared, set(imports.begin(), imports.end()));