]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/technique.cpp
Replace ProgramData copy constructor with a more explicit copy function
[libs/gl.git] / source / materials / technique.cpp
index 60eba997c05f2f0cd386039e59acd3c77bef1d45..163cbec60f0003245631fca2f503a9cdfc0cea5c 100644 (file)
@@ -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;