X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramdata.cpp;h=563ccfbbbdb6bb79e69978f0745778732765d59f;hp=7705fac9786420bf47b5fc02edf088cd54b64ec5;hb=b152e4f63170e8ccd6c9fb9397964c628fb6efeb;hpb=f1d6343bc6e08878500672db952e9e7f9c7b8ada diff --git a/source/programdata.cpp b/source/programdata.cpp index 7705fac9..563ccfbb 100644 --- a/source/programdata.cpp +++ b/source/programdata.cpp @@ -61,6 +61,9 @@ ProgramData::~ProgramData() 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()) {