]> git.tdb.fi Git - libs/gl.git/commitdiff
Use validate_name when copying ProgramData
authorMikko Rasa <tdb@tdb.fi>
Sun, 28 Mar 2021 21:26:45 +0000 (00:26 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 28 Mar 2021 21:26:45 +0000 (00:26 +0300)
It makes sense to use the same debug build logic here.

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;