X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fprogram.cpp;h=6013e7e82e9f35656f6741bb3743ea25a0237f5b;hp=1a7ac17b3e99325d33918cebff6593b4c257a989;hb=0757f7d3e514836ca85954708c41a1accac0574b;hpb=fbd0c3ae115021221e4c7222fd2070748d3d0878 diff --git a/source/core/program.cpp b/source/core/program.cpp index 1a7ac17b..6013e7e8 100644 --- a/source/core/program.cpp +++ b/source/core/program.cpp @@ -32,15 +32,9 @@ void Program::add_stages(const Module &mod, const map &spec_values) throw invalid_argument("Program::add_stages"); } - finalize(mod); + finalize(mod, transient); - if(mod.get_format()==Module::GLSL) - { - query_uniforms(); - query_attributes(); - apply_bindings(transient); - } - else if(mod.get_format()==Module::SPIR_V) + if(mod.get_format()==Module::SPIR_V) { collect_uniforms(static_cast(mod), transient.spec_values); collect_attributes(static_cast(mod));