From: Mikko Rasa Date: Sun, 28 Mar 2021 21:26:45 +0000 (+0300) Subject: Use validate_name when copying ProgramData X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=498d96d4da75d7b3f34587c25a8b35cc80978d43;p=libs%2Fgl.git Use validate_name when copying ProgramData It makes sense to use the same debug build logic here. --- diff --git a/source/render/programdata.cpp b/source/render/programdata.cpp index 5f124a90..b63ad60e 100644 --- a/source/render/programdata.cpp +++ b/source/render/programdata.cpp @@ -45,7 +45,7 @@ ProgramData::ProgramData(const ProgramData &other, const Program *p): if(tied_program) { for(vector::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;