From: Mikko Rasa Date: Tue, 21 Oct 2014 06:50:51 +0000 (+0300) Subject: Copy ProgramData::uniform_slots in copy constructor and operator= X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9bc72d268d1dd9dcf7c5f1f6b911ef97b54d81bd;p=libs%2Fgl.git Copy ProgramData::uniform_slots in copy constructor and operator= --- 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());