From 498d96d4da75d7b3f34587c25a8b35cc80978d43 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 29 Mar 2021 00:26:45 +0300 Subject: [PATCH] Use validate_name when copying ProgramData It makes sense to use the same debug build logic here. --- source/render/programdata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2