X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Ftechnique.cpp;h=163cbec60f0003245631fca2f503a9cdfc0cea5c;hp=60eba997c05f2f0cd386039e59acd3c77bef1d45;hb=9ec0e018234391efa66cc0f4080bfe470b910288;hpb=e70662d7812464159f2e47f4bebb69d88f89ae93 diff --git a/source/materials/technique.cpp b/source/materials/technique.cpp index 60eba997..163cbec6 100644 --- a/source/materials/technique.cpp +++ b/source/materials/technique.cpp @@ -79,7 +79,10 @@ bool Technique::replace_uniforms(const ProgramData &shdata) continue; if(!new_shdata) - new_shdata = new ProgramData(*kvp.second.get_shader_data()); + { + new_shdata = new ProgramData; + new_shdata->copy_uniforms(*kvp.second.get_shader_data()); + } new_shdata->copy_uniform(shdata, tag); replaced = true;