X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramdata.cpp;h=535ade962207103f29fc8db0b87ddefa2551a8cc;hp=563ccfbbbdb6bb79e69978f0745778732765d59f;hb=9bc72d268d1dd9dcf7c5f1f6b911ef97b54d81bd;hpb=b152e4f63170e8ccd6c9fb9397964c628fb6efeb diff --git a/source/programdata.cpp b/source/programdata.cpp index 563ccfbb..535ade96 100644 --- a/source/programdata.cpp +++ b/source/programdata.cpp @@ -21,6 +21,7 @@ ProgramData::ProgramData(): // Blocks are intentionally left uncopied ProgramData::ProgramData(const ProgramData &other): + uniform_slots(other.uniform_slots), uniforms(other.uniforms), last_block(0), buffer(0), @@ -36,6 +37,7 @@ ProgramData &ProgramData::operator=(const ProgramData &other) delete *i; uniforms.clear(); + uniform_slots = other.uniform_slots; for(vector::const_iterator i=other.uniforms.begin(); i!=other.uniforms.end(); ++i) uniforms.push_back((*i)->clone());