diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-07-25 14:32:28 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-07-25 14:32:28 -0600 |
commit | 1f6b4b0f75d7cd7306e6aa24c27fd478f6b6c52d (patch) | |
tree | fbce32e1aa5d07b124857ace77c406ade114ba3d /src/mesa/pipe | |
parent | 8b2955b736086103ac0d184a4b3f89d8ab8baab1 (diff) |
rename some vars
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_fs.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_fs.c b/src/mesa/pipe/softpipe/sp_quad_fs.c index 9b0b5b91e5..301bd13aa9 100644 --- a/src/mesa/pipe/softpipe/sp_quad_fs.c +++ b/src/mesa/pipe/softpipe/sp_quad_fs.c @@ -126,7 +126,7 @@ shade_quad( struct quad_stage *qs, struct quad_header *quad ) struct exec_machine exec; const GLfloat fx = quad->x0; const GLfloat fy = quad->y0; - GLuint i, j; + GLuint attr, i; exec.coef = quad->coef; @@ -156,21 +156,21 @@ shade_quad( struct quad_stage *qs, struct quad_header *quad ) * into the fragment program's responsibilities at some point. * Start at 1 to skip fragment position attribute (computed above). */ - for (i = 1; i < quad->nr_attrs; i++) { - switch (softpipe->interp[i]) { + for (attr = 1; attr < quad->nr_attrs; attr++) { + switch (softpipe->interp[attr]) { case INTERP_CONSTANT: - for (j = 0; j < NUM_CHANNELS; j++) - cinterp(&exec, i, j); + for (i = 0; i < NUM_CHANNELS; i++) + cinterp(&exec, attr, i); break; case INTERP_LINEAR: - for (j = 0; j < NUM_CHANNELS; j++) - linterp(&exec, i, j); + for (i = 0; i < NUM_CHANNELS; i++) + linterp(&exec, attr, i); break; case INTERP_PERSPECTIVE: - for (j = 0; j < NUM_CHANNELS; j++) - pinterp(&exec, i, j); + for (i = 0; i < NUM_CHANNELS; i++) + pinterp(&exec, attr, i); break; } } |