X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramcompiler.cpp;h=1ba898ec4d373f63e019610206dcce5762248063;hp=0aed5936af82948eb1c040621e61b7dea83b2b18;hb=11520b2b95f4242b3ca4d2d3d14a0f2b5c1623f1;hpb=e9d5d1945f110d5307036af0d4b3f0c3ebfe3d2a diff --git a/source/programcompiler.cpp b/source/programcompiler.cpp index 0aed5936..1ba898ec 100644 --- a/source/programcompiler.cpp +++ b/source/programcompiler.cpp @@ -208,6 +208,7 @@ void ProgramCompiler::generate(Stage &stage) apply(stage); apply(stage); apply(stage); + apply(stage); apply(stage); } @@ -459,6 +460,8 @@ void ProgramCompiler::Formatter::visit(VariableDeclaration &var) } if(var.constant) formatted += "const "; + if(!var.interpolation.empty()) + formatted += format("%s ", var.interpolation); if(!var.sampling.empty()) formatted += format("%s ", var.sampling); if(!var.interface.empty() && var.interface!=block_interface)