]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/compiler.cpp
Automatically determine array sizes in GLSL if possible
[libs/gl.git] / source / glsl / compiler.cpp
index 16ac375ca57f05660aa83ae89d9e75b4aff2a941..f1ab6d088e4e1bdedd5d4188685ef2f6a55f02e0 100644 (file)
@@ -299,6 +299,9 @@ void Compiler::generate(Stage &stage)
        variables through interfaces. */
        InterfaceGenerator().apply(stage);
        resolve(stage, RESOLVE_BLOCKS|RESOLVE_TYPES|RESOLVE_VARIABLES);
+
+       ArraySizer().apply(stage);
+       resolve(stage, RESOLVE_EXPRESSIONS);
 }
 
 template<typename T>