- const Program::UniformBlockMap &prog_blocks = prog->get_uniform_blocks();
- if(!prog_blocks.empty())
- {
- typedef pair<const UniformBlock *, unsigned> ApplyBlock;
- list<ApplyBlock> apply_blocks;
- for(Program::UniformBlockMap::const_iterator i=prog_blocks.begin(); i!=prog_blocks.end(); ++i)
- if(const UniformBlock *block = get_block(*prog, &i->second))
- apply_blocks.push_back(make_pair(block, i->second.bind_point));