X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fprogram.cpp;h=881872212bebc224209f020d24aae0b4cc64c485;hb=89347a620294a1136ee111edeadec68390654f78;hp=e146c7acd7eed8db385f2176492ed1a504fdb4e0;hpb=7696b0c0c5620398aa3a031521a1510026452f4d;p=libs%2Fgl.git diff --git a/source/core/program.cpp b/source/core/program.cpp index e146c7ac..88187221 100644 --- a/source/core/program.cpp +++ b/source/core/program.cpp @@ -33,11 +33,10 @@ void Program::add_stages(const Module &mod, const map &spec_values) reflect_data = ReflectData(); const Module *final_module = &mod; - TransientData transient; switch(mod.get_format()) { case Module::GLSL: - add_glsl_stages(static_cast(mod), spec_values, transient); + add_glsl_stages(static_cast(mod), spec_values); break; case Module::SPIR_V: if(!spec_values.empty()) @@ -51,8 +50,6 @@ void Program::add_stages(const Module &mod, const map &spec_values) throw invalid_argument("Program::add_stages"); } - finalize(*final_module, transient); - if(final_module->get_format()==Module::SPIR_V) { const SpirVModule &spirv_mod = *static_cast(final_module);