X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fcompiler.cpp;h=332dd331f69b6bc6e287e89306e2e21eeff52e72;hp=9c1238c029eec1155957b105748ae078767a4437;hb=4c6f1a526ed949f6c9f4c3a57c036b3cdb1aaa91;hpb=7f2ffe6e62bc7d7b2af7d3c3cccc57f87d8bf90f diff --git a/source/glsl/compiler.cpp b/source/glsl/compiler.cpp index 9c1238c0..332dd331 100644 --- a/source/glsl/compiler.cpp +++ b/source/glsl/compiler.cpp @@ -324,7 +324,7 @@ Compiler::OptimizeResult Compiler::optimize(Stage &stage) bool any_inlined = false; if(FunctionInliner().apply(stage)) { - resolve(stage, RESOLVE_TYPES|RESOLVE_VARIABLES|RESOLVE_EXPRESSIONS); + resolve(stage, RESOLVE_TYPES|RESOLVE_VARIABLES|RESOLVE_FUNCTIONS|RESOLVE_EXPRESSIONS); any_inlined = true; } if(ExpressionInliner().apply(stage))