]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/compiler.cpp
Resolve functions after inlining expressions
[libs/gl.git] / source / glsl / compiler.cpp
index ccfbe691195eefd91aa4314281db6afc1bb97c97..e46e5401a8fbe452e8175cc622545d7f52caf6f7 100644 (file)
@@ -312,7 +312,7 @@ Compiler::OptimizeResult Compiler::optimize(Stage &stage)
        }
        if(ExpressionInliner().apply(stage))
        {
-               resolve(stage, RESOLVE_VARIABLES|RESOLVE_EXPRESSIONS);
+               resolve(stage, RESOLVE_VARIABLES|RESOLVE_FUNCTIONS|RESOLVE_EXPRESSIONS);
                any_inlined = true;
        }