]> git.tdb.fi Git - libs/gl.git/commitdiff
Copy ProgramData::uniform_slots in copy constructor and operator=
authorMikko Rasa <tdb@tdb.fi>
Tue, 21 Oct 2014 06:50:51 +0000 (09:50 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 21 Oct 2014 06:50:51 +0000 (09:50 +0300)
source/programdata.cpp

index 563ccfbbbdb6bb79e69978f0745778732765d59f..535ade962207103f29fc8db0b87ddefa2551a8cc 100644 (file)
@@ -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<Uniform *>::const_iterator i=other.uniforms.begin(); i!=other.uniforms.end(); ++i)
                uniforms.push_back((*i)->clone());