]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/programdata.cpp
Use validate_name when copying ProgramData
[libs/gl.git] / source / render / programdata.cpp
index 5f124a907fc8eebbb034d25cddb5ba475c67c022..b63ad60e3e5138e908ac9781d129ce27f016c144 100644 (file)
@@ -45,7 +45,7 @@ ProgramData::ProgramData(const ProgramData &other, const Program *p):
        if(tied_program)
        {
                for(vector<NamedUniform>::const_iterator i=other.uniforms.begin(); i!=other.uniforms.end(); ++i)
-                       tied_program->get_uniform_info(i->name);
+                       validate_name(i->name);
        }
 
        uniforms = other.uniforms;