X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fcompiler.cpp;h=4c8c1d03d893d277395b2f64b5def34aa7e55168;hp=f1ab6d088e4e1bdedd5d4188685ef2f6a55f02e0;hb=acd7bb6e23e2aff9934ecf32852c62ba72c13574;hpb=6211e1556df8345ad1c4e7edbd635bccdd7f54f0 diff --git a/source/glsl/compiler.cpp b/source/glsl/compiler.cpp index f1ab6d08..4c8c1d03 100644 --- a/source/glsl/compiler.cpp +++ b/source/glsl/compiler.cpp @@ -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);