Skip to content

Commit

Permalink
Merge pull request #3 from kakaroto/master
Browse files Browse the repository at this point in the history
Fix last 2 for loops
  • Loading branch information
gzorin committed Mar 7, 2012
2 parents e334816 + a087a2b commit d77f19d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/library/program.cc
Expand Up @@ -1087,7 +1087,9 @@ glLinkProgram (GLuint program_name)
table.resize(uniforms.size());

unsigned int i = 0;
for(const std::pair< const char *, program_t::uniform_t > & value : uniforms) {
for(std::map< const char *, program_t::uniform_t, cstr_less >::iterator it = uniforms.begin();
it != uniforms.end(); it++) {
const std::pair< const char *, program_t::uniform_t > value = *it;
#if 0
rsxgl_debug_printf(" %s: type:%u count:%u values_index:%u vp_index:%u program_offsets_index:%u\n",
value.first,
Expand Down Expand Up @@ -1129,7 +1131,9 @@ glLinkProgram (GLuint program_name)
table.resize(sampler_uniforms.size());

unsigned int i = 0;
for(const std::pair< const char *, program_t::sampler_uniform_t > & value : sampler_uniforms) {
for(std::map< const char *, program_t::sampler_uniform_t, cstr_less >::iterator it = sampler_uniforms.begin();
it != sampler_uniforms.end(); it++) {
const std::pair< const char *, program_t::sampler_uniform_t > value = *it;
#if 0
rsxgl_debug_printf(" %s: type:%u vp_index:%u fp_index:%u\n",
value.first,
Expand Down

0 comments on commit d77f19d

Please sign in to comment.