// Blocks are intentionally left uncopied
ProgramData::ProgramData(const ProgramData &other):
+ uniform_slots(other.uniform_slots),
uniforms(other.uniforms),
last_block(0),
buffer(0),
delete *i;
uniforms.clear();
+ uniform_slots = other.uniform_slots;
for(vector<Uniform *>::const_iterator i=other.uniforms.begin(); i!=other.uniforms.end(); ++i)
uniforms.push_back((*i)->clone());
void ProgramData::uniform(const string &name, Uniform *uni)
{
+ if(name[name.size()-1]==']')
+ throw invalid_argument("ProgramData::uniform");
+
SlotMap::iterator i = uniform_slots.find(name);
if(i!=uniform_slots.end())
{