X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fcompiler.cpp;h=4b1d4edf11d0e6e29c8410ab123521b440826128;hb=6f06479b765946bdd3174b2c05e7a1dda24c31c2;hp=506fba1c417c62657ee98292febc5102a5a752cd;hpb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;p=libs%2Fgl.git diff --git a/source/glsl/compiler.cpp b/source/glsl/compiler.cpp index 506fba1c..4b1d4edf 100644 --- a/source/glsl/compiler.cpp +++ b/source/glsl/compiler.cpp @@ -363,6 +363,11 @@ Compiler::OptimizeResult Compiler::optimize(Stage &stage) resolve(stage, RESOLVE_TYPES|RESOLVE_VARIABLES|RESOLVE_FUNCTIONS|RESOLVE_EXPRESSIONS); any_inlined = true; } + if(AggregateDismantler().apply(stage)) + { + resolve(stage, RESOLVE_TYPES|RESOLVE_VARIABLES|RESOLVE_FUNCTIONS|RESOLVE_EXPRESSIONS); + any_inlined = true; + } if(ExpressionInliner().apply(stage)) { resolve(stage, RESOLVE_VARIABLES|RESOLVE_FUNCTIONS|RESOLVE_EXPRESSIONS);