]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/compiler.cpp
Refactor projection matrix handling
[libs/gl.git] / source / glsl / compiler.cpp
index f1ab6d088e4e1bdedd5d4188685ef2f6a55f02e0..4c8c1d03d893d277395b2f64b5def34aa7e55168 100644 (file)
@@ -93,6 +93,11 @@ void Compiler::compile(Mode mode)
                for(Stage &s: module->stages)
                        ConstantSpecializer().apply(s, spec_values);
        }
+       if(mode==PROGRAM)
+       {
+               for(Stage &s: module->stages)
+                       DepthRangeConverter().apply(s, features);
+       }
        for(auto i=module->stages.begin(); i!=module->stages.end(); )
        {
                OptimizeResult result = optimize(*i);