]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/compiler.cpp
Resolve functions after inlining functions
[libs/gl.git] / source / glsl / compiler.cpp
index 9c1238c029eec1155957b105748ae078767a4437..332dd331f69b6bc6e287e89306e2e21eeff52e72 100644 (file)
@@ -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))