Permalink
Browse files

ofFbo: copy constructor and equal operator lack initialization of som…

…e vars. Fixes #1665
  • Loading branch information...
1 parent 09f01de commit bf1f3922f6d3f6caa55a6af1a780581deca236f4 @arturoc arturoc committed Oct 24, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 libs/openFrameworks/gl/ofFbo.cpp
@@ -241,6 +241,8 @@ ofFbo::ofFbo(const ofFbo & mom){
retainRB(colorBuffers[i]);
}
textures = mom.textures;
+ dirty = mom.dirty;
+ defaultTextureIndex = mom.defaultTextureIndex;
}
ofFbo & ofFbo::operator=(const ofFbo & mom){
@@ -271,6 +273,8 @@ ofFbo & ofFbo::operator=(const ofFbo & mom){
retainRB(colorBuffers[i]);
}
textures = mom.textures;
+ dirty = mom.dirty;
+ defaultTextureIndex = mom.defaultTextureIndex;
return *this;
}

0 comments on commit bf1f392

Please sign in to comment.