- for (list<GLuint>::iterator freelist_it = fbo_freelist[context].begin();
- freelist_it != fbo_freelist[context].end();
- ++freelist_it) {
- GLuint fbo_num = *freelist_it;
- map<pair<void *, GLuint>, FBO>::const_iterator format_it =
- fbo_formats.find(make_pair(context, fbo_num));
- assert(format_it != fbo_formats.end());
- if (format_it->second.texture_num[0] == texture0_num &&
- format_it->second.texture_num[1] == texture1_num &&
- format_it->second.texture_num[2] == texture2_num &&
- format_it->second.texture_num[3] == texture3_num) {
+ list<FBOFormatIterator>::iterator end = fbo_freelist[context].end();
+ for (list<FBOFormatIterator>::iterator freelist_it = fbo_freelist[context].begin();
+ freelist_it != end; ++freelist_it) {
+ FBOFormatIterator fbo_it = *freelist_it;
+ if (fbo_it->second.texture_num[0] == texture0_num &&
+ fbo_it->second.texture_num[1] == texture1_num &&
+ fbo_it->second.texture_num[2] == texture2_num &&
+ fbo_it->second.texture_num[3] == texture3_num) {